mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix for bug #41111
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7a55fc9773
commit
54c7ddf7ee
2 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue