我有一个非常奇怪的崩溃。我不释放数据变量。我的日志是:
[NSConcreteData retain]: message sent to deallocated instance 0xa446a00
和代码
- (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data
{
if (!isThreadCreated)
{
self.isThreadCreated = YES;
[NSThread detachNewThreadSelector:@selector(createNewEncodingThread:) toTarget:self withObject:nil];
}
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
[[AudiobookAppDelegate delegate].dateManager saveTimeLastActivities];
if(trackFile && !isFotrbidGetNewData)
{
if (data)
{
self.downloadedLengthOfFile+= data.length;
[encodingArray addObject:data];
}
}
}