forked from enlightenment/efl
ector: fix memory leak in cairo backend when using shape.
Mixin destructor are not called, so we need to explicitely call it. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
c0f85c947b
commit
fa70a3a705
|
@ -261,6 +261,9 @@ void
|
|||
_ector_renderer_cairo_shape_eo_base_destructor(Eo *obj, Ector_Renderer_Cairo_Shape_Data *pd)
|
||||
{
|
||||
Eo *parent;
|
||||
//FIXME, As base class destructor can't call destructor of mixin class.
|
||||
// call explicit API to free shape data.
|
||||
eo_do(obj, efl_gfx_shape_reset());
|
||||
|
||||
eo_do(obj, parent = eo_parent_get());
|
||||
eo_data_xunref(parent, pd->parent, obj);
|
||||
|
|
Loading…
Reference in New Issue