From 3bf3096369d12a1b02654e488f287ceade938f35 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Thu, 15 Feb 2018 22:52:20 -0600 Subject: [PATCH] Fixed SPUDownloader getting leaked because the NSURLSession wasn't being invalidated --- Downloader/SPUDownloader.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Downloader/SPUDownloader.m b/Downloader/SPUDownloader.m index 2f0447de..a49a57f2 100644 --- a/Downloader/SPUDownloader.m +++ b/Downloader/SPUDownloader.m @@ -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;