From 9b5b541c8266cd009ee6fc779156c1a1207e8661 Mon Sep 17 00:00:00 2001 From: Simone Manganelli Date: Sun, 23 Aug 2009 14:16:02 -0700 Subject: [PATCH] Fix for Sparkle crasher in scheduleNextUpdateCheck. Originally by lapcat, http://github.com/rentzsch/clicktoflash/commit/f7ca07b3e6e6e13de8133d8e237f284f2ccdc066 --- SUUpdater.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SUUpdater.m b/SUUpdater.m index c8e2dec1..7b5b5989 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -174,6 +174,8 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv - (void)checkForUpdatesInBackground { + checkTimer = nil; // Timer doesn't repeat, so it's invalid, just needs to be set to nil. + [self checkForUpdatesWithDriver:[[[([self automaticallyDownloadsUpdates] ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class]) alloc] initWithUpdater:self] autorelease]]; }