From ad3a6150bca53435b46bbd14be7e9f1b486cfb49 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 1 Aug 1998 21:30:06 +0000 Subject: [PATCH] Fix dealloc problem git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2892 72102866-910b-0410-8b05-ffd578937521 --- Source/Set.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Set.m b/Source/Set.m index 22b546a47..db90873c5 100644 --- a/Source/Set.m +++ b/Source/Set.m @@ -80,8 +80,11 @@ - (void) dealloc { - NSFreeHashTable (_contents_hash); - _contents_hash = 0; + if (_contents_hash) + { + NSFreeHashTable (_contents_hash); + _contents_hash = 0; + } [super dealloc]; }