summaryrefslogtreecommitdiff
path: root/macosx/CheatController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 20:05:38 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 20:05:38 +0000
commit9628a367530657e7fefb17be0a125dbe3f5d7614 (patch)
treebaceff9a417edb789ad675372d364bb33aea82c4 /macosx/CheatController.m
parent105868aa85053f9597d6099e8d25d6ef8e0f992a (diff)
downloadpcsxr-9628a367530657e7fefb17be0a125dbe3f5d7614.tar.gz
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
Diffstat (limited to 'macosx/CheatController.m')
-rw-r--r--macosx/CheatController.m6
1 files changed, 4 insertions, 2 deletions
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);