Leaks brought to my attention by the static analyzer.

This commit is contained in:
Ray Fix
2012-01-07 12:42:06 -08:00
committed by Blake Watters
parent 3d03959d06
commit ab3ec5495f
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
@synthesize objectStore = _objectStore;
+ (id)loaderWithURL:(NSURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider objectStore:(RKManagedObjectStore *)objectStore {
return [[self alloc] initWithURL:URL mappingProvider:mappingProvider objectStore:objectStore];
return [[[self alloc] initWithURL:URL mappingProvider:mappingProvider objectStore:objectStore] autorelease];
}
- (id)initWithURL:(NSURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider objectStore:(RKManagedObjectStore *)objectStore {