From 52455b603e79a9341e444c9d7ed21c269645a080 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 22 Jun 2006 20:41:54 +0000 Subject: [PATCH] Free the evas_lists when we are done loading the gadget lists. SVN revision: 23540 --- src/bin/e_int_gadcon_config.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/e_int_gadcon_config.c b/src/bin/e_int_gadcon_config.c index 6cb13925e..e05d793ab 100644 --- a/src/bin/e_int_gadcon_config.c +++ b/src/bin/e_int_gadcon_config.c @@ -267,7 +267,9 @@ _load_available_gadgets(void *data) if (cc->func.icon) icon = cc->func.icon(evas); e_widget_ilist_append(oi, icon, label, _cb_select_client, cfdata, cc->name); } - e_widget_ilist_go(oi); + e_widget_ilist_go(oi); + + if (l) evas_list_free(l); } static void @@ -312,4 +314,7 @@ _load_selected_gadgets(void *data) } e_widget_ilist_go(oi); + + if (l) evas_list_free(l); + if (l2) evas_list_free(l2); }