forked from enlightenment/efl
eo: free vtable when erroring out
if there is a error when settings API to the vtable, free the vtable instead of leaking it. CID 1422015 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11580
This commit is contained in:
parent
670cfb14fc
commit
39347f45aa
|
@ -1866,6 +1866,7 @@ efl_object_override(Eo *eo_id, const Efl_Object_Ops *ops)
|
|||
else
|
||||
{
|
||||
_vtable_free(vtable, &obj->klass->vtable);
|
||||
free(vtable);
|
||||
}
|
||||
|
||||
goto err;
|
||||
|
|
Loading…
Reference in New Issue