fix use of released object in debug message by relocating the release call

This commit is contained in:
Jeff Arena
2010-10-19 10:28:34 -04:00
parent c3e28d0ecb
commit 89f26fbe7f

View File

@@ -14,11 +14,11 @@
- (NSDictionary*)objectFromString:(NSString*)string {
SBJsonParser* parser = [[SBJsonParser alloc] init];
id result = [parser objectWithString:string];
[parser release];
if (nil == result) {
// TODO: Need to surface these errors in a better fashion
NSLog(@"[RestKit] RKMappingFormatJSONParser: Parser failed with error trace: %@ and string: %@", [parser errorTrace], string);
}
[parser release];
return result;
}