From 314837de7e03c9b2b5e152305367d8cfdc1b5f45 Mon Sep 17 00:00:00 2001 From: siuying Date: Tue, 7 Jun 2011 19:19:17 +0800 Subject: [PATCH] Fix a leak on Mac OSX --- SDImageCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDImageCache.m b/SDImageCache.m index 6de0e5bb..f9f57eb0 100644 --- a/SDImageCache.m +++ b/SDImageCache.m @@ -132,8 +132,8 @@ static SDImageCache *instance; [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]; } }