From 081301d59096912480e0835d87e90ea7c2745763 Mon Sep 17 00:00:00 2001 From: Michael Ehrmann Date: Mon, 29 Oct 2018 17:52:48 +0100 Subject: [PATCH] =?UTF-8?q?SPUDownloaderSession=20leaked=20because=20the?= =?UTF-8?q?=20NSURLSession=20wasn=E2=80=99t=20invalidated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sparkle/SPUDownloaderSession.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle/SPUDownloaderSession.m b/Sparkle/SPUDownloaderSession.m index 219c4b22..4cc2331e 100644 --- a/Sparkle/SPUDownloaderSession.m +++ b/Sparkle/SPUDownloaderSession.m @@ -150,6 +150,7 @@ -(void)cleanup { [self.download cancel]; + [self.downloadSession invalidateAndCancel]; self.download = nil; self.downloadSession = nil; [super cleanup];