aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-11-09 20:18:26 +0000
committerstuconnolly <stuart02@gmail.com>2010-11-09 20:18:26 +0000
commit4dfdf313add14a802387cf69c95e85a2c0a7dca9 (patch)
tree507efbaa1a938e60a376ce133a2b1ef7d9c72c2f /Source
parentcdbbadba94d42a82c8c5773fd3fdef746e7ad8e4 (diff)
downloadsequelpro-4dfdf313add14a802387cf69c95e85a2c0a7dca9.tar.gz
sequelpro-4dfdf313add14a802387cf69c95e85a2c0a7dca9.tar.bz2
sequelpro-4dfdf313add14a802387cf69c95e85a2c0a7dca9.zip
Minor dealloc change.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m6
1 files 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;