Skip to content

Commit

Permalink
Fixed potential memory leak detected by clang static analyser
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Fournié <[email protected]>
  • Loading branch information
Vincent Fournié committed Jan 11, 2012
1 parent 2e76a13 commit 64064ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDWebImageDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)aConnection
} else {
if ([delegate respondsToSelector:@selector(imageDownloader:didFinishWithImage:andEtag:)]) {
UIImage *image = [[UIImage alloc] initWithData:imageData];
NSString *etagCopy;
NSString *etagCopy = nil;
if (self.etag) {
etagCopy = [[NSString alloc] initWithString:self.etag];
etagCopy = [NSString stringWithString:self.etag];
}

#ifdef ENABLE_SDWEBIMAGE_DECODER
Expand Down

0 comments on commit 64064ed

Please sign in to comment.