forked from enlightenment/efl
eo: do no allocate a 0 sized segment
allocating 0 sized elements here is pointless. This here was doing that, so ensure that we are only allocating vtable nodes that have more than 0 function pointers. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11575
This commit is contained in:
parent
f80cfa4893
commit
1b058695f5
|
@ -864,8 +864,11 @@ _eo_class_funcs_set(Eo_Vtable *vtable, const Efl_Object_Ops *ops, const _Efl_Cla
|
||||||
|
|
||||||
if (!override_only)
|
if (!override_only)
|
||||||
{
|
{
|
||||||
//Before setting any real functions, allocate the node that will contain all the functions
|
if (number_of_new_functions)
|
||||||
_vtable_prepare_empty_node(vtable, number_of_new_functions, class_id);
|
{
|
||||||
|
//Before setting any real functions, allocate the node that will contain all the functions
|
||||||
|
_vtable_prepare_empty_node(vtable, number_of_new_functions, class_id);
|
||||||
|
}
|
||||||
hitmap[class_id] = EINA_TRUE;
|
hitmap[class_id] = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue