Fix failed commit

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28434 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-08-04 06:13:37 +00:00
parent 7130a0a8c3
commit 9d4d268acd
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-08-03 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: Fix error in memory allocation debug when
swizzling a class.
2009-07-30 Quentin Mathe <qmathe@club-internet.fr>
* Headers/Foundation/Foundation.h: Included NSKeyValueObserving.h.

View file

@ -689,12 +689,15 @@ GSPrivateSwizzle(id o, Class c)
}
else if (GSIsFinalizable(c))
{
/* New clas is finalizable, so we must register the instance
/* New class is finalizable, so we must register the instance
* for finalisation and do allocation acounting for it.
*/
AADD(c, o);
GC_REGISTER_FINALIZER (o, GSFinalize, NULL, NULL, NULL);
}
#else
AREM(o->class_pointer, o);
AADD(c, o);
#endif /* GS_WITH_GC */
o->class_pointer = c;
}