Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix the duplicated AFJSONDecode() calling that cause message sendin…
Browse files Browse the repository at this point in the history
…g to deallocated `NSError` object
  • Loading branch information
dismory committed Apr 25, 2012
1 parent ce23a07 commit b76b28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFJSONRequestOperation.m
Expand Up @@ -66,7 +66,7 @@ - (void)dealloc {
}

- (id)responseJSON {
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished]) {
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished] && !self.JSONError) {
NSError *error = nil;

if ([self.responseData length] == 0) {
Expand Down

0 comments on commit b76b28f

Please sign in to comment.