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:
Subhransu Mohanty 2015-08-10 16:13:51 +09:00 committed by Cedric BAIL
parent c0f85c947b
commit fa70a3a705
1 changed files with 3 additions and 0 deletions

View File

@ -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);