diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-20 17:26:34 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-20 17:26:34 +0000 |
| commit | 1da8003f5ae10c0b17653d0de976b293e3ac0a3d (patch) | |
| tree | 73c3ccbd8cff1ff8eec33865b4c5517109992fff /macosx/PluginList.m | |
| parent | 8093a1645070c5b5413fc5dee0d9917aee178c9d (diff) | |
| download | pcsxr-1da8003f5ae10c0b17653d0de976b293e3ac0a3d.tar.gz | |
Bumping the minimum OS X version to 10.7.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82403 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PluginList.m')
| -rwxr-xr-x | macosx/PluginList.m | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/macosx/PluginList.m b/macosx/PluginList.m index 813f0f58..876488eb 100755 --- a/macosx/PluginList.m +++ b/macosx/PluginList.m @@ -14,7 +14,7 @@ #import "ARCBridge.h" //NSMutableArray *plugins; -static PluginList __unsafe_unretained *sPluginList = nil; +static PluginList __weak *sPluginList = nil; const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, PSE_LT_NET}; @implementation PluginList @@ -131,13 +131,12 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, return self; } +#if !__has_feature(objc_arc) - (void)dealloc { if (sPluginList == self) sPluginList = nil; -#if !__has_feature(objc_arc) - [activeGpuPlugin release]; [activeSpuPlugin release]; [activeCdrPlugin release]; @@ -146,10 +145,9 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, [pluginList release]; - [super dealloc]; -#endif } +#endif - (void)refreshPlugins { |
