cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fa70a3a70595c8b4e3be3ee44656636255ad0fee

commit fa70a3a70595c8b4e3be3ee44656636255ad0fee
Author: Subhransu Mohanty <sub.moha...@samsung.com>
Date:   Mon Aug 10 16:13:51 2015 +0900

    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 <ced...@osg.samsung.com>
---
 src/lib/ector/cairo/ector_renderer_cairo_shape.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ector/cairo/ector_renderer_cairo_shape.c 
b/src/lib/ector/cairo/ector_renderer_cairo_shape.c
index b3923e9..3a6073b 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_shape.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_shape.c
@@ -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);

-- 


Reply via email to