Fix potential crasher in SDImageCache. Don't rely on memory cache to retain a returned value.
This commit is contained in:
parent
439c01527f
commit
1753b2d844
|
@ -159,7 +159,7 @@ static SDImageCache *instance;
|
|||
if (image != nil)
|
||||
{
|
||||
[memCache setObject:image forKey:key];
|
||||
[image release];
|
||||
[image autorelease];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue