Fix a leak on Mac OSX

This commit is contained in:
siuying 2011-06-07 19:19:17 +08:00 committed by Olivier Poitrey
parent 0a2e9a3040
commit 314837de7e
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}
}