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]; }