Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65504

No autorelease pool block for event loop iteration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4
    • 5.9.3
    • QPA
    • None
    • macOS 10.12 (Sierra)

    Description

      There is no Cocoa local autorelease pool for each QApplication event loop iteration.

      Local autorelease pools are provided within NSApplication event handling, but Qt events which are delivered via CFRunLoop source do not have one.

      This is an unexpected behaviour and may cause leaks. The only way autorelease objects are currently released is when application modal window is shown and NSApp runloop is interrupted, which is not a proper way.

      Proposed patch is attached.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vestbo Tor Arne Vestbø
              tihiy Stanislav Zinuhkov
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes