mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
cece102d39
commit
e9ff4f3a3c
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-01-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Fixed logic error in David's libobjc2 integration
|
||||
for deallocation; should use object_getClass() if the object is NOT a
|
||||
small object, use isa otherwise.
|
||||
|
||||
2013-12-31 Marcus Mueller <znek@mulle-kybernetik.com>
|
||||
|
||||
* Headers/Foundation/NSMetadata.h: use GS_PROTOCOLS_HAVE_OPTIONAL for
|
||||
|
|
|
@ -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…
Reference in a new issue