mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-08-15 11:27:35 +00:00
[ Tim Douglas <timdoug@gmail.com> ]
use an auto release pool around modal prefs dialog on Mac OS X
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user