Try to fix a random crash on dealloc

This commit is contained in:
Olivier Poitrey 2012-11-29 01:32:10 +01:00
parent 82faab82d3
commit d487bccf5e
1 changed files with 8 additions and 5 deletions

View File

@ -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