Fix static analyzer issues

This commit is contained in:
Blake Watters
2012-05-18 20:01:56 -04:00
parent 4105625776
commit 489bb0423a
6 changed files with 7 additions and 8 deletions

View File

@@ -106,11 +106,11 @@
NSError *error = nil;
NSArray *objectIDs = [self.managedObjectContext executeFetchRequest:fetchRequest error:&error];
[fetchRequest release];
if (error) {
RKLogError(@"Failed to load entity cache: %@", error);
return;
}
[fetchRequest release];
self.attributeValuesToObjectIDs = [NSMutableDictionary dictionaryWithCapacity:[objectIDs count]];
for (NSManagedObjectID *objectID in objectIDs) {

View File

@@ -15,7 +15,7 @@ RK_FIX_CATEGORY_BUG(RKObjectMappingProvider_CoreData)
- (void)setObjectMapping:(RKObjectMappingDefinition *)objectMapping forResourcePathPattern:(NSString *)resourcePath withFetchRequestBlock:(RKObjectMappingProviderFetchRequestBlock)fetchRequestBlock {
[self setEntry:[RKObjectMappingProviderContextEntry contextEntryWithMapping:objectMapping
userData:[fetchRequestBlock copy]] forResourcePathPattern:resourcePath];
userData:Block_copy(fetchRequestBlock)] forResourcePathPattern:resourcePath];
}
- (NSFetchRequest *)fetchRequestForResourcePath:(NSString *)resourcePath {