diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-04 03:07:44 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-04 03:07:44 +0000 |
| commit | dd7da2fae96b9ba6bdbc28f7b26469373801f21e (patch) | |
| tree | 9faf6aa7f2fa2900dcabc3d88d11e87285693e9b /macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m | |
| parent | a012af37d7bd3a972d2b3fbb7ed09bc8662e91eb (diff) | |
| download | pcsxr-dd7da2fae96b9ba6bdbc28f7b26469373801f21e.tar.gz | |
Make the plug-ins use ARC in 64-bit mode.
Change how the preprocessor macros are managed on OS X.
Set the name of the product to the target name.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85795 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m')
| -rwxr-xr-x | macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m index 5fc97637..55c27785 100755 --- a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m +++ b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m @@ -26,6 +26,7 @@ #include "externals.h" #include "draw.h" // for CreateScanLines() #undef BOOL +#import "ARCBridge.h" // not sure why these aren't class or instance variables... NSWindow *gameWindow; @@ -219,13 +220,12 @@ NSRect FitRectInRect(NSRect source, NSRect destination) - (void)dealloc { - NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; - - [nc removeObserver:self]; - windowFrame = [[self window] frame]; // huh? - + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; - [super dealloc]; + [nc removeObserver:self]; + windowFrame = [[self window] frame]; // huh? + + SUPERDEALLOC; } // forget keyDownEvents @@ -346,7 +346,7 @@ NSRect FitRectInRect(NSRect source, NSRect destination) - (BOOL)windowShouldClose:(id)sender { [[NSNotificationCenter defaultCenter] postNotificationName:@"emuWindowDidClose" object:self]; - [gameController autorelease]; + AUTORELEASEOBJNORETURN(gameController); gameController = nil; gameWindow = nil; CGReleaseAllDisplays(); |
