From 9628a367530657e7fefb17be0a125dbe3f5d7614 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 22 Aug 2013 20:05:38 +0000 Subject: Use SDL2.framework from /Library/Frameworks on OS X instead of miniSDL. Remove SDL code on OS X's plug-ins subdirectory. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86848 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/CheatController.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'macosx/CheatController.m') diff --git a/macosx/CheatController.m b/macosx/CheatController.m index 4b91319d..09f1e5a5 100644 --- a/macosx/CheatController.m +++ b/macosx/CheatController.m @@ -73,7 +73,7 @@ - (id)copyWithZone:(NSZone *)zone { - return [[[self class] alloc] initWithAddress:address value:value]; + return [[[self class] allocWithZone:zone] initWithAddress:address value:value]; } @end @@ -163,7 +163,9 @@ { NSMutableArray *tmpArray = [[NSMutableArray alloc] initWithCapacity:NumCheats]; for (int i = 0; i < NumCheats; i++) { - [tmpArray addObject:AUTORELEASEOBJ([[PcsxrCheatTemp alloc] initWithCheat:&Cheats[i]])]; + PcsxrCheatTemp *tmpObj = [[PcsxrCheatTemp alloc] initWithCheat:&Cheats[i]]; + [tmpArray addObject:tmpObj]; + RELEASEOBJ(tmpObj); } self.cheats = tmpArray; RELEASEOBJ(tmpArray); -- cgit v1.2.3