summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2014-12-25 21:57:53 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-25 21:57:57 +0100
commit4d0695d28430d66c4bbc893c4637aee907bed762 (patch)
treee48171866a90f335f5316768357565a2e0a6a06f /src/lib/edje
parenteae8a620097008e36193d362563576eb4dc55944 (diff)
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index fa29f266b2..6cb827a142 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)
9803 } 9803 }
9804 9804
9805 BUF_APPEND(I0"}\n\n"); 9805 BUF_APPEND(I0"}\n\n");
9806 eina_list_free(images);
9806 } 9807 }
9807 /* if styles were found, print them */ 9808 /* if styles were found, print them */
9808 if (styles) 9809 if (styles)
@@ -9811,6 +9812,7 @@ edje_edit_source_generate(Evas_Object *obj)
9811 EINA_LIST_FOREACH(styles, l, entry) 9812 EINA_LIST_FOREACH(styles, l, entry)
9812 _edje_generate_source_of_style(ed, entry, buf); 9813 _edje_generate_source_of_style(ed, entry, buf);
9813 BUF_APPEND(I0 "}\n\n"); 9814 BUF_APPEND(I0 "}\n\n");
9815 eina_list_free(styles);
9814 } 9816 }
9815 /* if fonts were found, print them */ 9817 /* if fonts were found, print them */
9816 if (fonts) 9818 if (fonts)
@@ -9825,6 +9827,7 @@ edje_edit_source_generate(Evas_Object *obj)
9825 } 9827 }
9826 9828
9827 BUF_APPEND(I0 "}\n\n"); 9829 BUF_APPEND(I0 "}\n\n");
9830 eina_list_free(fonts);
9828 } 9831 }
9829 /* if color_classes were found, print them */ 9832 /* if color_classes were found, print them */
9830 if (color_classes) 9833 if (color_classes)
@@ -9835,6 +9838,7 @@ edje_edit_source_generate(Evas_Object *obj)
9835 _edje_generate_source_of_colorclass(ed, entry, buf); 9838 _edje_generate_source_of_colorclass(ed, entry, buf);
9836 9839
9837 BUF_APPEND(I0 "}\n\n"); 9840 BUF_APPEND(I0 "}\n\n");
9841 eina_list_free(color_classes);
9838 } 9842 }
9839 9843
9840 /* print the main code of group collections */ 9844 /* print the main code of group collections */