Skip to content

Commit

Permalink
Fix a leak on Mac OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying authored and Olivier Poitrey committed Jul 13, 2011
1 parent 0a2e9a3 commit 314837d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDImageCache.m
Expand Up @@ -132,8 +132,8 @@ - (void)storeKeyWithDataToDisk:(NSArray *)keyAndData
[fileManager createFileAtPath:[self cachePathForKey:key] contents:jpegData attributes:nil];
#else
[fileManager createFileAtPath:[self cachePathForKey:key] contents:UIImageJPEGRepresentation(image, (CGFloat)1.0) attributes:nil];
[image release];
#endif
[image release];
}
}

Expand Down

0 comments on commit 314837d

Please sign in to comment.