refcount: unrefing does not invalid object
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a5cb5a4397
commit
277aec7fcf
|
@ -28,7 +28,6 @@
|
|||
{ \
|
||||
if(*item && --(*item)->refcount <= 0) \
|
||||
dtor(item); \
|
||||
*item = NULL; \
|
||||
} \
|
||||
\
|
||||
static inline type *prefix##_ref(type **item) \
|
||||
|
|
Loading…
Reference in New Issue