raster pushed a commit to branch master.

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

commit d636c0f801dd56671a970076acdfdf78dd3115f6
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Feb 11 15:03:01 2014 +0900

    edje - fix probable leak by ensuring current prog is freed on real part free
    
    this should fix T923
---
 src/lib/edje/edje_load.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index c27808e..e43c8f1 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -1430,6 +1430,15 @@ _edje_file_del(Edje *ed)
                }
              eina_mempool_free(_edje_real_part_state_mp, rp->custom);
 
+             if (rp->current)
+               {
+                  eina_cow_free(_edje_calc_params_map_cow, (const 
Eina_Cow_Data **) &rp->current->map);
+#ifdef HAVE_EPHYSICS
+                  eina_cow_free(_edje_calc_params_physics_cow, (const 
Eina_Cow_Data **) &rp->current->physics);
+#endif
+                  free(rp->current);
+                  rp->current = NULL;
+               }
              _edje_unref(ed);
              eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) 
&rp->param1.p.map);
 #ifdef HAVE_EPHYSICS

-- 


Reply via email to