From 20e0e7a849d70139f9106f60c78fd0c736ec3c4b Mon Sep 17 00:00:00 2001
From: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
Date: Wed, 13 Jan 2010 12:25:30 +0100
Subject: Revert "Add an autorelease pool to QApplication instance."

This reverts commit 705ebaea0d81c76c97e7230f0acbe85442981555.

For some strange reason, the change that we revert caused a lot
of problems; the menu bar stopped working, duplicating menu items
etc., and modality stopped working correctly. So there is only
one thing to do: revert.

Rev-By: msorvig
---
 src/gui/kernel/qapplication_p.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h
index 2927c45..2404d91 100644
--- a/src/gui/kernel/qapplication_p.h
+++ b/src/gui/kernel/qapplication_p.h
@@ -74,9 +74,6 @@
 #ifdef Q_OS_SYMBIAN
 #include <w32std.h>
 #endif
-#ifdef Q_WS_MAC
-#include <private/qt_mac_p.h>
-#endif
 
 QT_BEGIN_NAMESPACE
 
@@ -487,13 +484,6 @@ public:
     static Qt::NavigationMode navigationMode;
 #endif
 
-//  We need to have an autorelease pool in place in order
-//  to catch releases done in between creating the QApplication
-//  instance and calling QApplicaiton::exec();
-#if defined(QT_MAC_USE_COCOA)
-    QMacCocoaAutoReleasePool pool;
-#endif
-
 #if defined(Q_WS_MAC) || defined(Q_WS_X11)
     void _q_alertTimeOut();
     QHash<QWidget *, QTimer *> alertTimerHash;
-- 
cgit v0.12