diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-01-26 12:42:48 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-01-26 12:42:48 (GMT) |
commit | 7ad08868de4b3e481a51a3431504fcf42a4bbf6d (patch) | |
tree | aa4c17f7c79db31d932db16e9984147e74c6ad08 /src | |
parent | b6a2ce7b02951aab761ddc8ffa022bbd8f19fa83 (diff) | |
download | Qt-7ad08868de4b3e481a51a3431504fcf42a4bbf6d.zip Qt-7ad08868de4b3e481a51a3431504fcf42a4bbf6d.tar.gz Qt-7ad08868de4b3e481a51a3431504fcf42a4bbf6d.tar.bz2 |
Cocoa: qfiledialog test spits out memory warnings
We need an auto release pool!
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index e0dcaef..13c25fd 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -143,6 +143,9 @@ extern QPointer<QWidget> qt_button_down; //qapplication_mac.cpp void macWindowFade(void * /*OSWindowRef*/ window, float durationSeconds) { +#ifdef QT_MAC_USE_COCOA + QMacCocoaAutoReleasePool pool; +#endif OSWindowRef wnd = static_cast<OSWindowRef>(window); if (wnd) { QWidget *widget; |