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

No autorelease pool block for event loop iteration

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes