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 13:01:23 (GMT) |
commit | 88719423de4fc3d36a5aab1eb13744984c8f5194 (patch) | |
tree | 49e00f2df9a3e7d614ee2166961e8ac60e671b6f /src/gui/kernel/qt_cocoa_helpers_mac.mm | |
parent | f92e9c32160ca32b93173dafad2734963528446d (diff) | |
download | Qt-88719423de4fc3d36a5aab1eb13744984c8f5194.zip Qt-88719423de4fc3d36a5aab1eb13744984c8f5194.tar.gz Qt-88719423de4fc3d36a5aab1eb13744984c8f5194.tar.bz2 |
Cocoa: qfiledialog test spits out memory warnings
We need an auto release pool!
(cherry picked from commit 7ad08868de4b3e481a51a3431504fcf42a4bbf6d)
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-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 e85a716..e06a810 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; |