mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
9c5d4cd19e
commit
03c8a8fd7d
3 changed files with 10 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue