summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-01-26 12:42:48 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-01-26 12:42:48 (GMT)
commit7ad08868de4b3e481a51a3431504fcf42a4bbf6d (patch)
treeaa4c17f7c79db31d932db16e9984147e74c6ad08 /src
parentb6a2ce7b02951aab761ddc8ffa022bbd8f19fa83 (diff)
downloadQt-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.mm3
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;