From 28145672308efd3a42aa3dc9c3ca4429c0e493e2 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 11 Feb 1999 09:27:35 +0000 Subject: [PATCH] Remove timer when deallocating defaults object git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3688 72102866-910b-0410-8b05-ffd578937521 --- Source/NSUserDefaults.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/NSUserDefaults.m b/Source/NSUserDefaults.m index 980d8c1d8..eb70f9fea 100644 --- a/Source/NSUserDefaults.m +++ b/Source/NSUserDefaults.m @@ -272,7 +272,7 @@ static NSMutableString *processName = nil; // Either userName is empty or it's wrong if (!userHome) { - [self dealloc]; + [self release]; return nil; } filename = [NSString stringWithFormat: @"%@/%@", @@ -337,7 +337,7 @@ static NSMutableString *processName = nil; } if (done == NO) { - [self dealloc]; + [self release]; return self = nil; } } @@ -371,6 +371,8 @@ static NSMutableString *processName = nil; - (void)dealloc { + if (tickingTimer) + [tickingTimer invalidate]; [searchList release]; [persDomains release]; [tempDomains release];