When storeImage:imageData:forKey:toDisk: is called with toDisk:YES but no data, do not prevent memory caching (fix: #24)

This commit is contained in:
Olivier Poitrey 2011-09-08 09:59:16 +02:00
parent 1a355d09c2
commit e9d43e443a
1 changed files with 1 additions and 5 deletions

View File

@ -188,15 +188,11 @@ static SDImageCache *instance;
return;
}
if (toDisk && !data)
{
return;
}
[memCache setObject:image forKey:key];
if (toDisk)
{
if (!data) return;
NSArray *keyWithData;
if (data)
{