autorelease the parser

This commit is contained in:
Blake Watters
2010-09-29 21:37:51 -04:00
parent a5b08fafd8
commit f06e3acb88

View File

@@ -111,7 +111,7 @@
}
- (id)bodyAsJSON {
return [[[RKMappingFormatJSONParser alloc] init] objectFromString:[self bodyAsString]];
return [[[[RKMappingFormatJSONParser alloc] init] autorelease] objectFromString:[self bodyAsString]];
}
- (NSString*)failureErrorDescription {