Fix "return NULL" in function returning void.

This commit is contained in:
Jonathan Schleifer 2012-08-26 17:40:43 +02:00
parent 72046b604b
commit cfa3c72b00

View file

@ -108,7 +108,7 @@ cfw_unref(void *ptr)
CFWObject *obj = ptr; CFWObject *obj = ptr;
if (obj == NULL) if (obj == NULL)
return NULL; return;
if (--obj->ref_cnt == 0) if (--obj->ref_cnt == 0)
cfw_free(obj); cfw_free(obj);
@ -120,7 +120,7 @@ cfw_free(void *ptr)
CFWObject *obj = ptr; CFWObject *obj = ptr;
if (obj == NULL) if (obj == NULL)
return NULL; return;
if (obj->cls->dtor != NULL) if (obj->cls->dtor != NULL)
obj->cls->dtor(obj); obj->cls->dtor(obj);