Try to fix a random crash on dealloc
This commit is contained in:
parent
82faab82d3
commit
d487bccf5e
|
@ -112,11 +112,14 @@
|
|||
|
||||
- (void)reset
|
||||
{
|
||||
self.cancelBlock = nil;
|
||||
self.completedBlock = nil;
|
||||
self.progressBlock = nil;
|
||||
self.connection = nil;
|
||||
self.imageData = nil;
|
||||
dispatch_async(dispatch_get_main_queue(), ^
|
||||
{
|
||||
self.cancelBlock = nil;
|
||||
self.completedBlock = nil;
|
||||
self.progressBlock = nil;
|
||||
self.connection = nil;
|
||||
self.imageData = nil;
|
||||
});
|
||||
}
|
||||
|
||||
- (void)setFinished:(BOOL)finished
|
||||
|
|
Loading…
Reference in New Issue