summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_cocoa_helpers_mac.mm
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 13:01:23 (GMT)
commit88719423de4fc3d36a5aab1eb13744984c8f5194 (patch)
tree49e00f2df9a3e7d614ee2166961e8ac60e671b6f /src/gui/kernel/qt_cocoa_helpers_mac.mm
parentf92e9c32160ca32b93173dafad2734963528446d (diff)
downloadQt-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.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 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;