finalize KV observations

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27639 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-01-20 11:41:41 +00:00
parent 9c5d4cd19e
commit 03c8a8fd7d
3 changed files with 10 additions and 5 deletions

View file

@ -1910,9 +1910,9 @@ GSMakeWeakPointer(Class class, const char *iVarName)
BOOL
GSAssignZeroingWeakPointer(void **destination, void *source)
{
if (GC_base(destination) == 0)
if (destination == 0)
{
return NO; // Destination is not in garbage collection system.
return NO; // Bad destination pointer
}
if (*destination == source)
{