forked from enlightenment/efl
eo - fix freeq usage to not use freeq for a vtable cleaning
the freeq can't allow things to access the content of the pointer because the content canbe written over by canary handling qhen submitted to the freeq. clear it inline then just submit the final pointer to the freeq. @fix
This commit is contained in:
parent
784411800b
commit
eb67a08c8d
|
@ -1188,7 +1188,7 @@ static void
|
|||
_vtable_free(Eo_Vtable *vtable)
|
||||
{
|
||||
if (!vtable) return;
|
||||
eina_freeq_ptr_main_add(vtable, EINA_FREE_CB(_vtable_func_clean_all), 0);
|
||||
_vtable_func_clean_all(vtable);
|
||||
eina_freeq_ptr_main_add(vtable, free, sizeof(*vtable));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue