QTfrontend/CocoaInitializer.mm
changeset 2400 2422ea85d100
parent 2261 57e99c908e7c
child 3697 d5b30d6373fc
--- a/QTfrontend/CocoaInitializer.mm	Sun Sep 27 22:25:27 2009 +0000
+++ b/QTfrontend/CocoaInitializer.mm	Fri Oct 02 16:49:31 2009 +0000
@@ -17,12 +17,16 @@
 CocoaInitializer::CocoaInitializer()
 {
 	d = new CocoaInitializer::Private();
+        c = new CocoaInitializer::Private();
 	NSApplicationLoad();
+        c->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
 	d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
 }
 
 CocoaInitializer::~CocoaInitializer()
 {
 	[d->autoReleasePool_ release];
+        [c->autoReleasePool_ release];
+	delete c;
 	delete d;
 }