mem: add comment
This commit is contained in:
parent
87f8a8b1a4
commit
64e5387bff
1 changed files with 1 additions and 0 deletions
|
@ -282,6 +282,7 @@ void *mem_deref(void *data)
|
|||
if (m->dh)
|
||||
m->dh(data);
|
||||
|
||||
/* NOTE: check if the destructor called mem_ref() */
|
||||
if (m->nrefs > 0)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue