Fix a race condition (fix #220)

This commit is contained in:
Olivier Poitrey 2012-11-14 00:59:29 +01:00
parent 0920e7a001
commit 022aa2146e
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@
{
UIImage *image = [UIImage decodedImageWithImage:SDScaledImageForPath(self.request.URL.absoluteString, [UIImage imageWithCGImage:partialImageRef])];
CGImageRelease(partialImageRef);
self.completedBlock(image, nil, NO);
if (self.completedBlock) self.completedBlock(image, nil, NO);
}
}