Move Cocoa release pool to main

.. because mainwindows come and go and we need to persist
   across them all.
This commit is contained in:
Mark Liversedge
2013-12-23 10:38:18 +00:00
parent 6817db609b
commit 192a2e27df
2 changed files with 8 additions and 4 deletions

View File

@@ -118,10 +118,6 @@ MainWindow::MainWindow(const QDir &home)
GCColor *GCColorSet = new GCColor(context); // get/keep colorset
GCColorSet->colorSet(); // shut up the compiler
#ifdef Q_OS_MAC
// get an autorelease pool setup
static CocoaInitializer cocoaInitializer;
#endif
#ifdef GC_HAVE_WFAPI
WFApi *w = WFApi::getInstance(); // ensure created on main thread
w->apiVersion();//shutup compiler