refcount: unrefing does not invalid object

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-17 11:57:54 +02:00
parent a5cb5a4397
commit 277aec7fcf
1 changed files with 0 additions and 1 deletions

View File

@ -28,7 +28,6 @@
{ \ { \
if(*item && --(*item)->refcount <= 0) \ if(*item && --(*item)->refcount <= 0) \
dtor(item); \ dtor(item); \
*item = NULL; \
} \ } \
\ \
static inline type *prefix##_ref(type **item) \ static inline type *prefix##_ref(type **item) \