cedric pushed a commit to branch master.

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

commit 4d0695d28430d66c4bbc893c4637aee907bed762
Author: Andrii Kroitor <[email protected]>
Date:   Thu Dec 25 21:57:53 2014 +0100

    edje: fix memory leak in edje_edit_source_generate.
    
    Reviewers: cedric, seoz, Hermet, raster, reutskiy.v.v
    
    @fix
    
    Reviewed By: reutskiy.v.v
    
    Subscribers: cedric, reutskiy.v.v
    
    Differential Revision: https://phab.enlightenment.org/D1821
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/lib/edje/edje_edit.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index fa29f26..6cb827a 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -9803,6 +9803,7 @@ edje_edit_source_generate(Evas_Object *obj)
           }
 
         BUF_APPEND(I0"}\n\n");
+        eina_list_free(images);
      }
    /* if styles were found, print them */
    if (styles)
@@ -9811,6 +9812,7 @@ edje_edit_source_generate(Evas_Object *obj)
         EINA_LIST_FOREACH(styles, l, entry)
            _edje_generate_source_of_style(ed, entry, buf);
         BUF_APPEND(I0 "}\n\n");
+        eina_list_free(styles);
      }
    /* if fonts were found, print them */
    if (fonts)
@@ -9825,6 +9827,7 @@ edje_edit_source_generate(Evas_Object *obj)
           }
 
         BUF_APPEND(I0 "}\n\n");
+        eina_list_free(fonts);
      }
    /* if color_classes were found, print them */
    if (color_classes)
@@ -9835,6 +9838,7 @@ edje_edit_source_generate(Evas_Object *obj)
          _edje_generate_source_of_colorclass(ed, entry, buf);
 
        BUF_APPEND(I0 "}\n\n");
+        eina_list_free(color_classes);
      }
 
    /* print the main code of group collections */

-- 


Reply via email to