QTfrontend/CocoaInitializer.mm
changeset 2400 2422ea85d100
parent 2261 57e99c908e7c
child 3697 d5b30d6373fc
equal deleted inserted replaced
2399:ddde0ac1472b 2400:2422ea85d100
    15 };
    15 };
    16 
    16 
    17 CocoaInitializer::CocoaInitializer()
    17 CocoaInitializer::CocoaInitializer()
    18 {
    18 {
    19 	d = new CocoaInitializer::Private();
    19 	d = new CocoaInitializer::Private();
       
    20         c = new CocoaInitializer::Private();
    20 	NSApplicationLoad();
    21 	NSApplicationLoad();
       
    22         c->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
    21 	d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
    23 	d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
    22 }
    24 }
    23 
    25 
    24 CocoaInitializer::~CocoaInitializer()
    26 CocoaInitializer::~CocoaInitializer()
    25 {
    27 {
    26 	[d->autoReleasePool_ release];
    28 	[d->autoReleasePool_ release];
       
    29         [c->autoReleasePool_ release];
       
    30 	delete c;
    27 	delete d;
    31 	delete d;
    28 }
    32 }