Skip to content

Commit

Permalink
Fixed static analyzer problems
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Nov 16, 2009
1 parent 27c23b4 commit 0158b25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iphone/Classes/Sound.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ - (AudioFile*) audioFileForResource:(NSString*) resourcePath
if (audioFile == nil) {
NSError *error;

audioFile = [[AudioFile alloc] init];
audioFile = [[[AudioFile alloc] init] autorelease];
audioFile.resourcePath = resourcePath;
audioFile.resourceURL = resourceURL;

Expand Down Expand Up @@ -102,7 +102,6 @@ - (void) prepare:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)optio
audioFile.player.delegate = self;
[audioFile.player prepareToPlay];
}
[audioFile release];
}

- (void) play:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
Expand Down

0 comments on commit 0158b25

Please sign in to comment.