Fix a race condition (fix #220)
This commit is contained in:
parent
0920e7a001
commit
022aa2146e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue