adium/adium

Parents 63ff42d07432
Children 024e5177ce06
Fixed double release causing crash upon file transfer completion on Bonjour. Fixes #16038, references #16182.
--- a/Copyright.txt Wed Jan 14 15:54:44 2015 +0100
+++ b/Copyright.txt Thu Sep 25 12:29:20 2014 +1000
@@ -69,6 +69,7 @@
Scott Lamb
Moses Lei
Adam Leonard
+Quentin Les
Chenguang Li
Jack M.H. Lin
Paul R. Livesey
--- a/Plugins/Bonjour/libezv/Classes/EKEzvIncomingFileTransfer.m Wed Jan 14 15:54:44 2015 +0100
+++ b/Plugins/Bonjour/libezv/Classes/EKEzvIncomingFileTransfer.m Thu Sep 25 12:29:20 2014 +1000
@@ -316,7 +316,7 @@
[[[manager client] client] reportError:[NSString stringWithFormat: @"Download failed! Error - %@ %@",
[error localizedDescription],
[[error userInfo] objectForKey:NSURLErrorFailingURLStringErrorKey]] ofLevel: AWEzvError];
- [download release];
+ [currentDownloads removeObject:download];
}
- (void)downloadDidFinish:(NSURLDownload *)download
{
@@ -340,7 +340,6 @@
[[[manager client] client] updateProgressForFileTransfer:self percent:[NSNumber numberWithFloat:percentComplete] bytesSent:[NSNumber numberWithLongLong:bytesReceived]];
[currentDownloads removeObject:download];
- [download release];
}
- (void)download:(NSURLDownload *)download didReceiveResponse:(NSURLResponse *)response
{