git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-01-07 10:41:49 +00:00
parent 7a55fc9773
commit 54c7ddf7ee
2 changed files with 9 additions and 3 deletions

View file

@ -1420,11 +1420,11 @@ static id gs_weak_load(id obj)
#ifdef OBJC_SMALL_OBJECT_MASK
if (((NSUInteger)self & OBJC_SMALL_OBJECT_MASK) == 0)
{
destructorClass = object_getClass(self);
destructorClass = isa; // Potentially hidden class
}
else
{
destructorClass = isa;
destructorClass = object_getClass(self); // Small object
}
#else
destructorClass = isa;
@ -1450,7 +1450,7 @@ static id gs_weak_load(id obj)
destructorClass = class_getSuperclass(destructorClass);
if (newDestructor != destructor)
{
{
newDestructor(self, cxx_destruct);
destructor = newDestructor;
}