Fix a bug in SDImageCache making first request to disk cache to always return nil (fix #81)
This commit is contained in:
parent
14b79734d2
commit
a8d5b3ec72
|
@ -245,7 +245,7 @@ static SDImageCache *instance;
|
|||
|
||||
if (!image && fromDisk)
|
||||
{
|
||||
UIImage *image = SDScaledImageForPath(key, [NSData dataWithContentsOfFile:[self cachePathForKey:key]]);
|
||||
image = SDScaledImageForPath(key, [NSData dataWithContentsOfFile:[self cachePathForKey:key]]);
|
||||
if (image)
|
||||
{
|
||||
[memCache setObject:image forKey:key];
|
||||
|
|
Loading…
Reference in New Issue