summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-09-10 17:28:40 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-09-10 17:44:51 +0100
commit38be95b0b6fd93df01636ae0a7c974b32ed694a1 (patch)
treeedf24df7b2de527ad9ce34f11c65a19fa6e12fc6
parente0ad216aeef4e4451d798a5ecddd6029856bbcf4 (diff)
efl gfx path - implement destructor and thus fix leak
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c6
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.eo5
2 files changed, 10 insertions, 1 deletions
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)
1529 _efl_gfx_path_path_set(obj, pd, from->commands, from->points); 1529 _efl_gfx_path_path_set(obj, pd, from->commands, from->points);
1530} 1530}
1531 1531
1532EOLIAN static void
1533_efl_gfx_path_efl_object_destructor(Eo *obj, Efl_Gfx_Path_Data *pd)
1534{
1535 _efl_gfx_path_reset(obj, pd);
1536}
1537
1532#include "interfaces/efl_gfx_path.eo.c" 1538#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 @@
1import eina_types; 1import eina_types;
2import efl_gfx_types; 2import efl_gfx_types;
3 3
4mixin @beta Efl.Gfx.Path 4mixin @beta Efl.Gfx.Path requires Efl.Object
5{ 5{
6 [[EFL graphics path object interface]] 6 [[EFL graphics path object interface]]
7 methods { 7 methods {
@@ -271,4 +271,7 @@ mixin @beta Efl.Gfx.Path
271 ]] 271 ]]
272 } 272 }
273 } 273 }
274 implements {
275 Efl.Object.destructor;
276 }
274} 277}