From 2984c9da369c9a376620635a00c1a3a2b9d3efe3 Mon Sep 17 00:00:00 2001 From: Eric Schuele Date: Wed, 30 May 2007 11:51:06 +0000 Subject: [PATCH] Fix issue in which assigning the same theme category to many themes would result in the lack of an icon designating that it was in fact assigned. SVN revision: 30156 --- src/bin/e_int_config_theme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_int_config_theme.c b/src/bin/e_int_config_theme.c index d5fd58328..75ac518d2 100644 --- a/src/bin/e_int_config_theme.c +++ b/src/bin/e_int_config_theme.c @@ -854,7 +854,7 @@ _cb_adv_btn_assign(void *data1, void *data2) t = themes->data; if (!strcmp(t->category, newtheme->category)) { - if (t->file) + if ((t->file) && (strcmp(t->file, newtheme->file))) { filename = strdup(t->file); free((void *)(t->file)); @@ -873,6 +873,8 @@ _cb_adv_btn_assign(void *data1, void *data2) } if (!themes) cfdata->theme_list = evas_list_append(cfdata->theme_list, newtheme); + else + free(newtheme); return; }