Merge pull request #1184 from ksuther/downloadSession-leak

Fixed SPUDownloader leak
This commit is contained in:
Kornel authored and GitHub committed 2018-02-15 23:07:30 -08:00
commit 67320fcb80
1 file changed
+1
+1
View File
@@ -115,6 +115,7 @@ static NSString *SUDownloadingReason = @"Downloading update related file";
{
[self enableAutomaticTermination];
[self.download cancel];
[self.downloadSession invalidateAndCancel];
self.download = nil;
self.downloadSession = nil;
self.delegate = nil;