From 615f71474b5c34c94d4d403d687528c2b548fbc2 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 20 Mar 2016 13:16:36 -0400 Subject: [PATCH] Fix retain cycle by making these references weak --- Sparkle/SUBasicUpdateDriver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h index a16256c0..ec2485e9 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SUBasicUpdateDriver.h @@ -32,8 +32,8 @@ NS_ASSUME_NONNULL_BEGIN - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates completion:(void (^)(void))completionBlock; @property (nonatomic, readonly) SUHost *host; -@property (nonatomic, readonly) id updater; // if we didn't have legacy support, I'd remove this.. -@property (nullable, nonatomic, readonly) id updaterDelegate; +@property (nonatomic, readonly, weak) id updater; // if we didn't have legacy support, I'd remove this.. +@property (nullable, nonatomic, readonly, weak) id updaterDelegate; @property (nonatomic, readonly) NSString *userAgent; @property (nullable, nonatomic, readonly) SUAppcastItem *nonDeltaUpdateItem;