forked from enlightenment/efl
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:
parent
75c981a9d9
commit
e14a11d9fa
|
@ -945,6 +945,7 @@ _eo_callback_remove_all(Efl_Object_Data *pd)
|
||||||
_eo_callback_free(pd->callbacks[i]);
|
_eo_callback_free(pd->callbacks[i]);
|
||||||
|
|
||||||
free(pd->callbacks);
|
free(pd->callbacks);
|
||||||
|
pd->callbacks = NULL;
|
||||||
pd->callbacks_count = 0;
|
pd->callbacks_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue