diff --git a/Source/NSDeallocateObject.m b/Source/NSDeallocateObject.m index 7630096d6..00ac7f054 100644 --- a/Source/NSDeallocateObject.m +++ b/Source/NSDeallocateObject.m @@ -26,6 +26,9 @@ void NSDeallocateObject(NSObject *anObject) { if ((anObject!=nil) && CLS_ISCLASS(((id)anObject)->class_pointer)) - NSZoneFree ([anObject zone], anObject); + { + ((id)anObject)->class_pointer = (void*) 0xdeadface; + NSZoneFree ([anObject zone], anObject); + } return; }