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:
rfm 2009-08-04 06:13:37 +00:00
parent 0a9865e430
commit 6e50741e9a
2 changed files with 9 additions and 1 deletions

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;
}