Skip to content

Commit

Permalink
Fix potential crasher in SDImageCache. Don't rely on memory cache to …
Browse files Browse the repository at this point in the history
…retain a returned value.
  • Loading branch information
henrik committed Mar 20, 2010
1 parent 439c015 commit 1753b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDImageCache.m
Expand Up @@ -159,7 +159,7 @@ - (UIImage *)imageFromKey:(NSString *)key fromDisk:(BOOL)fromDisk
if (image != nil)
{
[memCache setObject:image forKey:key];
[image release];
[image autorelease];
}
}

Expand Down

0 comments on commit 1753b2d

Please sign in to comment.