Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.3
-
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
- relates to
-
QTBUG-45769 Considerations and issues when using NSAutoreleasePool in Qt
- Open
-
QTBUG-60012 [macos] Continuously increasing memory consumption when calling QWidget::update()
- Closed