forked from enlightenment/efl
efl gfx_path: fix memory leak.
his reverts commit 38be95b0b6
.
The reverting patch blocks efl_canvas_vg_shape triggers efl_canvas_vg_node destructor.
That occurs massive leaks among the all nodes in the vector tree.
To fix the origin issue, we must reset path explicitly in the derived class.
@fix
This commit is contained in:
parent
bfb4c0a483
commit
69dfeb0323
|
@ -1535,11 +1535,4 @@ _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);
|
_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);
|
|
||||||
efl_destructor(efl_super(obj, EFL_GFX_PATH_MIXIN));
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "interfaces/efl_gfx_path.eo.c"
|
#include "interfaces/efl_gfx_path.eo.c"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import eina_types;
|
import eina_types;
|
||||||
import efl_gfx_types;
|
import efl_gfx_types;
|
||||||
|
|
||||||
mixin @beta Efl.Gfx.Path requires Efl.Object
|
mixin @beta Efl.Gfx.Path
|
||||||
{
|
{
|
||||||
[[EFL graphics path object interface]]
|
[[EFL graphics path object interface]]
|
||||||
methods {
|
methods {
|
||||||
|
@ -267,7 +267,4 @@ mixin @beta Efl.Gfx.Path requires Efl.Object
|
||||||
]]
|
]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
|
||||||
Efl.Object.destructor;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue