--- 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;
}