Skip to content

Commit

Permalink
Fix a mem leak in SDWebImageDownloader (fix SDWebImage#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Poitrey committed Mar 22, 2012
1 parent a8d5b3e commit dfa03af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SDWebImageDownloader.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ - (void)connection:(NSURLConnection *)aConnection didReceiveResponse:(NSURLRespo
code:[((NSHTTPURLResponse *)response) statusCode] code:[((NSHTTPURLResponse *)response) statusCode]
userInfo:nil]; userInfo:nil];
[delegate performSelector:@selector(imageDownloader:didFailWithError:) withObject:self withObject:error]; [delegate performSelector:@selector(imageDownloader:didFailWithError:) withObject:self withObject:error];
SDWIRelease(error);
} }


self.connection = nil; self.connection = nil;
Expand Down

0 comments on commit dfa03af

Please sign in to comment.