efl gfx path - implement destructor and thus fix leak

This commit is contained in:
Carsten Haitzler 2019-09-10 17:28:40 +01:00
parent e0ad216aee
commit 38be95b0b6
2 changed files with 10 additions and 1 deletions

View File

@ -1529,4 +1529,10 @@ _efl_gfx_path_copy_from(Eo *obj, Efl_Gfx_Path_Data *pd, const Eo *dup_from)
_efl_gfx_path_path_set(obj, pd, from->commands, from->points);
}
EOLIAN static void
_efl_gfx_path_efl_object_destructor(Eo *obj, Efl_Gfx_Path_Data *pd)
{
_efl_gfx_path_reset(obj, pd);
}
#include "interfaces/efl_gfx_path.eo.c"

View File

@ -1,7 +1,7 @@
import eina_types;
import efl_gfx_types;
mixin @beta Efl.Gfx.Path
mixin @beta Efl.Gfx.Path requires Efl.Object
{
[[EFL graphics path object interface]]
methods {
@ -271,4 +271,7 @@ mixin @beta Efl.Gfx.Path
]]
}
}
implements {
Efl.Object.destructor;
}
}