diff options
author | Andy Shaw <qt-info@nokia.com> | 2011-01-26 12:01:08 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2011-01-26 12:01:08 (GMT) |
commit | 9e2179544157a28aadfbbeaaf787a4a29f9996a2 (patch) | |
tree | 8033c5316b5b9a326db15d8c533fb45d105ee31b /src | |
parent | 64b989b1fc42a6f6d34e95cc52977e871f510321 (diff) | |
download | Qt-9e2179544157a28aadfbbeaaf787a4a29f9996a2.zip Qt-9e2179544157a28aadfbbeaaf787a4a29f9996a2.tar.gz Qt-9e2179544157a28aadfbbeaaf787a4a29f9996a2.tar.bz2 |
Plug memory leak when using qt_mac_set_dock_menu() on Cocoa
Task-number: QTBUG-16918
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index 3820bfc..20c1ddb 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -1391,6 +1391,7 @@ void qt_mac_constructQIconFromIconRef(const IconRef icon, const IconRef overlayI void qt_mac_menu_collapseSeparators(void */*NSMenu **/ theMenu, bool collapse) { + QMacCocoaAutoReleasePool pool; OSMenuRef menu = static_cast<OSMenuRef>(theMenu); if (collapse) { bool previousIsSeparator = true; // setting to true kills all the separators placed at the top. |