Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mutualmobile/MMRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Stoll committed May 8, 2013
2 parents a0dea23 + 8c89297 commit c616d6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Source/MMRecord/MMRecord.m
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,14 @@ + (void)performRequestWithRequestState:(MMRecordRequestState *)state {
if (state.failureBlock != nil) {
state.failureBlock(error);
}

if ([state isBatched]) {
dispatch_group_leave(state.dispatchGroup);
}

#if NEEDS_DISPATCH_RETAIN_RELEASE
dispatch_release(state.dispatchGroup);
#endif
}];

[self restoreDefaultOptions];
Expand Down
2 changes: 1 addition & 1 deletion Source/MMRecord/MMRecordRepresentation.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ - (id)primaryKeyValueFromDictionary:(NSDictionary *)dictionary {
id value = nil;

for (NSString *key in [primaryKeyRepresentation keyPaths]) {
value = [dictionary valueForKey:key];
value = [dictionary valueForKeyPath:key];

if (value != nil) {
return value;
Expand Down

0 comments on commit c616d6b

Please sign in to comment.