use an auto release pool around modal prefs dialog on Mac OS X
This commit is contained in:
asvitkine
2010-01-02 19:24:24 +00:00
parent 8e1a2f7f48
commit 6677e5824c

View File

@@ -75,6 +75,8 @@
- (void) openPreferences:(id)sender
{
NSAutoreleasePool *pool;
if (nibObjects == nil) {
nibObjects = [self loadPrefsNibFile];
if (nibObjects == nil)
@@ -82,8 +84,10 @@
[nibObjects retain];
}
pool = [[NSAutoreleasePool alloc] init];
[[VMSettingsController sharedInstance] setupGUI];
[NSApp runModalForWindow:prefsWindow];
[pool release];
}
@end