From 4dfdf313add14a802387cf69c95e85a2c0a7dca9 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 9 Nov 2010 20:18:26 +0000 Subject: Minor dealloc change. --- Source/SPAppController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 34ff1dda..b2876af4 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -44,6 +44,7 @@ { if ((self = [super init])) { _sessionURL = nil; + aboutController = nil; _spfSessionDocData = [[NSMutableDictionary alloc] init]; [NSApp setDelegate:self]; @@ -66,10 +67,8 @@ */ - (void)awakeFromNib { - // Set up the prefs controller prefsController = [[SPPreferenceController alloc] init]; - aboutController = nil; // Set Sparkle delegate [[SUUpdater sharedUpdater] setDelegate:self]; @@ -926,7 +925,8 @@ [[NSNotificationCenter defaultCenter] removeObserver:self]; [prefsController release], prefsController = nil; - [aboutController release], aboutController = nil; + + if (aboutController) [aboutController release], aboutController = nil; if (_sessionURL) [_sessionURL release], _sessionURL = nil; if (_spfSessionDocData) [_spfSessionDocData release], _spfSessionDocData = nil; -- cgit v1.2.3