From 2fc19f674182026a12a3ec54c53569178bee9729 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 14 May 2020 10:31:00 -0700 Subject: [PATCH] Fixes RefreshGroup strong reference cycle --- AltStore/Operations/RefreshGroup.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltStore/Operations/RefreshGroup.swift b/AltStore/Operations/RefreshGroup.swift index c4f3dd72..9d487b6b 100644 --- a/AltStore/Operations/RefreshGroup.swift +++ b/AltStore/Operations/RefreshGroup.swift @@ -46,8 +46,8 @@ class RefreshGroup: NSObject if self.operations.isEmpty && !operations.isEmpty { - self.dispatchGroup.notify(queue: .global()) { - self.finish() + self.dispatchGroup.notify(queue: .global()) { [weak self] in + self?.finish() } }