summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 14:11:07 +0200
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 14:12:12 +0200
commite1851f3246fe307830173573fbbcf013e8a1b1e8 (patch)
tree2eda9516bd16bc3ce9f11a76235fc7eb6ac60b7a /src
parent1fa620be2794b46a9b5d867ae6b2d7fa844b610c (diff)
downloadqt4-tools-e1851f3246fe307830173573fbbcf013e8a1b1e8.tar.gz
Remove mem leak / warning in the cocoaport
Remove mem leak / warning in the cocoaport Reviewed-by: msorvig
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 0a31a28d3e..8913c89da6 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4674,6 +4674,7 @@ void QWidgetPrivate::setModal_sys()
OSWindowRef windowRef = qt_mac_window_for(q);
#ifdef QT_MAC_USE_COCOA
+ QMacCocoaAutoReleasePool pool;
bool alreadySheet = [windowRef styleMask] & NSDocModalWindowMask;
if (windowParent && q->windowModality() == Qt::WindowModal){