cocoaTouch/GameSetup.m
changeset 3487 b1d00f1950c8
parent 3479 972ae3ec178a
child 3490 016b3172b645
--- a/cocoaTouch/GameSetup.m	Fri May 28 20:13:47 2010 +0000
+++ b/cocoaTouch/GameSetup.m	Mon May 31 19:33:42 2010 +0000
@@ -154,6 +154,7 @@
 -(NSInteger) provideScheme:(NSString *)schemeName {
     NSString *schemePath = [[NSString alloc] initWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),schemeName];
     NSArray *scheme = [[NSArray alloc] initWithContentsOfFile:schemePath];
+    [schemePath release];
     int result = 0;
     int i = 0;
     
@@ -231,6 +232,7 @@
     [self sendToEngine:explosives];
     [explosives release];
     
+    [scheme release];
     return result;
 }