diff options
Diffstat (limited to 'macosx/PluginController.m')
| -rwxr-xr-x | macosx/PluginController.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/PluginController.m b/macosx/PluginController.m index d89b38fc..24d0da57 100755 --- a/macosx/PluginController.m +++ b/macosx/PluginController.m @@ -1,6 +1,7 @@ #import "PluginController.h" #import "PcsxrPlugin.h" #import "PcsxrController.h" +#import "ARCBridge.h" @implementation PluginController @@ -50,8 +51,8 @@ // remember the list pluginType = type; - plugins = [list retain]; - defaultKey = [[PcsxrPlugin defaultKeyForType:pluginType] retain]; + plugins = RETAINOBJ(list); + defaultKey = RETAINOBJ([PcsxrPlugin defaultKeyForType:pluginType]); // clear the previous menu items [pluginMenu removeAllItems]; @@ -72,11 +73,13 @@ [self selectPlugin:pluginMenu]; } +#if !__has_feature(objc_arc) - (void)dealloc { if (plugins) [plugins release]; if (defaultKey) [defaultKey release]; [super dealloc]; } +#endif @end |
