Merge pull request #3401 from dreampiggy/fix_unlock_unbalanced
Fix the unbalanced lock which cause crash
This commit is contained in:
commit
d3b111deb1
|
@ -824,6 +824,7 @@ static id<SDImageLoader> _defaultImageLoader;
|
|||
- (void)cancel {
|
||||
SD_LOCK(_cancelledLock);
|
||||
if (_cancelled) {
|
||||
SD_UNLOCK(_cancelledLock);
|
||||
return;
|
||||
}
|
||||
_cancelled = YES;
|
||||
|
|
Loading…
Reference in New Issue