Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)startIconDownload:(Product *)product forIndexPath:(NSIndexPath *)indexPath
- {
- ThumbDownloader *thumbDownloader = [imageDownloadsInProgress objectForKey:indexPath];
- if (thumbDownloader == nil)
- {
- thumbDownloader = [[ThumbDownloader alloc] init];
- thumbDownloader.product = product;
- thumbDownloader.imageSizeWidth = 87;
- thumbDownloader.imageSizeHeight = 87;
- thumbDownloader.indexPathInTableView = indexPath;
- thumbDownloader.delegate = self;
- [imageDownloadsInProgress setObject:thumbDownloader forKey:indexPath];
- [thumbDownloader startDownload];
- [thumbDownloader release];
- }
- }
- - (void)appImageDidLoad:(NSIndexPath *)indexPath
- -[listingView appImageDidLoad:]: message sent to deallocated instance 0x3beed10
- - (void)dealloc
- {
- [myTable release], myTable = nil;
- [imageDownloadsInProgress release], imageDownloadsInProgress = nil;
- [spinView release], spinView = nil;
- [mainView release], mainView = nil;
- [tableView release], tableView = nil;
- [myVs release], myVs = nil;
- [filteredVs release], filteredVs = nil;
- [toolBar release], toolBar = nil;
- [super dealloc];
- }
- - (void)dealloc
- {
- for(ThumbDownloader *thumbDownloader in imageDownloadsInProgress)
- if(thumbDownloader !=nil && thumbDownloader.delegate!=nil)
- thumbDownloader.delegate = nil;
- .....
Add Comment
Please, Sign In to add comment