eo base - fix free of all callbacks to set callbacks to NULL

we set count to 0 but not ptr to NULL. this we must do after free so
when other destructors run dont go relying on this ptr to be valid!
This commit is contained in:
Carsten Haitzler 2016-09-06 22:12:23 +09:00
parent 75c981a9d9
commit e14a11d9fa
1 changed files with 1 additions and 0 deletions

View File

@ -945,6 +945,7 @@ _eo_callback_remove_all(Efl_Object_Data *pd)
_eo_callback_free(pd->callbacks[i]);
free(pd->callbacks);
pd->callbacks = NULL;
pd->callbacks_count = 0;
}