Fix a bug in SDImageCache making first request to disk cache to always return nil (fix #81)

This commit is contained in:
Olivier Poitrey 2012-03-22 10:37:23 +01:00
parent 14b79734d2
commit a8d5b3ec72
1 changed files with 1 additions and 1 deletions

View File

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