e_object: set pointer to NULL after cleanup func.

This commit is contained in:
Al Poole 2018-03-02 11:40:53 +00:00
parent d70733bbdc
commit eee5853dac
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ e_object_free(E_Object *obj)
obj->magic = E_OBJECT_MAGIC_FREED; obj->magic = E_OBJECT_MAGIC_FREED;
#endif #endif
obj->cleanup_func(obj); obj->cleanup_func(obj);
obj = NULL;
} }
E_API int E_API int