Permalink
Browse files

Add Block_copy() invocation to ensure the fetch request block is tran…

…sferred to the heap. refs #738
  • Loading branch information...
1 parent e932c31 commit 95b38b1f3733410c58308bb811e6697f1dbbf5be @blakewatters blakewatters committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Code/CoreData/RKObjectMappingProvider+CoreData.m
@@ -15,7 +15,7 @@ @implementation RKObjectMappingProvider (CoreData)
- (void)setObjectMapping:(RKObjectMappingDefinition *)objectMapping forResourcePathPattern:(NSString *)resourcePath withFetchRequestBlock:(RKObjectMappingProviderFetchRequestBlock)fetchRequestBlock {
[self setEntry:[RKObjectMappingProviderContextEntry contextEntryWithMapping:objectMapping
- userData:fetchRequestBlock] forResourcePathPattern:resourcePath];
+ userData:[fetchRequestBlock copy]] forResourcePathPattern:resourcePath];
}
- (NSFetchRequest *)fetchRequestForResourcePath:(NSString *)resourcePath {

0 comments on commit 95b38b1

Please sign in to comment.