git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27832 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-02-10 14:35:12 +00:00
parent 962f660ada
commit afb6e09fe8
3 changed files with 4 additions and 3 deletions

View file

@ -1918,10 +1918,10 @@ GSAssignZeroingWeakPointer(void **destination, void *source)
}
if (*destination != 0)
{
GC_unregister_disappearing_link((GC_PTR*)destination);
GC_unregister_disappearing_link(destination);
}
*destination = source;
GC_general_register_disappearing_link((GC_PTR*)destination, source);
GC_general_register_disappearing_link(destination, source);
return YES;
}