From 531ad373b2c22e00a341a6635023cf8949571bd5 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 22 Aug 2013 23:53:37 +0000 Subject: Moving most of the OS X preferences to auto layout, and all to 10.7. Changing some lists of independent checkbox buttons to matrices. Fix a discrepancy between SDL versions 1.2 and 2.0 APIs in OS X's input preferences. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86849 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFSound/macsrc/SPUPluginController.m | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'macosx/plugins/DFSound/macsrc/SPUPluginController.m') diff --git a/macosx/plugins/DFSound/macsrc/SPUPluginController.m b/macosx/plugins/DFSound/macsrc/SPUPluginController.m index bb225b51..83598618 100644 --- a/macosx/plugins/DFSound/macsrc/SPUPluginController.m +++ b/macosx/plugins/DFSound/macsrc/SPUPluginController.m @@ -8,9 +8,7 @@ #import "SPUPluginController.h" -@implementation SPUPluginController - -static Class GetSPUBaseClass() +static inline Class GetSPUBaseClass() { static Class spuBaseClass; if (!spuBaseClass) { @@ -19,7 +17,7 @@ static Class GetSPUBaseClass() return spuBaseClass; } -static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) +static void FuncNotAvailable(id sel, id sender, SEL theCmd) { #ifdef DEBUG NSString *selString = NSStringFromSelector(theCmd); @@ -39,6 +37,9 @@ static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) #define NotAvailableWarn(sender) FuncNotAvailable(self, sender, _cmd) +@implementation SPUPluginController +@synthesize keyValues; + - (IBAction)cancel:(id)sender { NotAvailableWarn(sender); @@ -59,4 +60,13 @@ static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) NotAvailableWarn(nil); } +#if !__has_feature(objc_arc) +- (void)dealloc +{ + self.keyValues = nil; + + [super dealloc]; +} +#endif + @end -- cgit v1.2.3