Fix potential crasher in SDImageCache. Don't rely on memory cache to retain a returned value.

This commit is contained in:
Henrik N 2010-03-20 20:13:27 +01:00
parent 439c01527f
commit 1753b2d844
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static SDImageCache *instance;
if (image != nil)
{
[memCache setObject:image forKey:key];
[image release];
[image autorelease];
}
}