summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 12:11:07 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 12:12:12 (GMT)
commite1851f3246fe307830173573fbbcf013e8a1b1e8 (patch)
tree2eda9516bd16bc3ce9f11a76235fc7eb6ac60b7a /src
parent1fa620be2794b46a9b5d867ae6b2d7fa844b610c (diff)
downloadQt-e1851f3246fe307830173573fbbcf013e8a1b1e8.zip
Qt-e1851f3246fe307830173573fbbcf013e8a1b1e8.tar.gz
Qt-e1851f3246fe307830173573fbbcf013e8a1b1e8.tar.bz2
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 0a31a28..8913c89 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){