raster pushed a commit to branch master.

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

commit 38be95b0b6fd93df01636ae0a7c974b32ed694a1
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Sep 10 17:28:40 2019 +0100

    efl gfx path - implement destructor and thus fix leak
---
 src/lib/efl/interfaces/efl_gfx_path.c  | 6 ++++++
 src/lib/efl/interfaces/efl_gfx_path.eo | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/lib/efl/interfaces/efl_gfx_path.c 
b/src/lib/efl/interfaces/efl_gfx_path.c
index c40d33a187..326dd33994 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -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"
diff --git a/src/lib/efl/interfaces/efl_gfx_path.eo 
b/src/lib/efl/interfaces/efl_gfx_path.eo
index e370ea5a08..9130f3d9e3 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.eo
+++ b/src/lib/efl/interfaces/efl_gfx_path.eo
@@ -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;
+   }
 }

-- 


Reply via email to