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