From 4413a33c7d75db1149c19f872b7e248887ca059d Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 10 Sep 2006 10:34:17 +0000 Subject: [PATCH] might want to free strings that are strdup'd SVN revision: 25687 --- src/bin/e_apps.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 317db33a2..46970e0a4 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -1658,12 +1658,15 @@ e_app_icon_add(Evas *evas, E_App *a) } else if (a->icon_class) /* If that fails, then this might be an FDO icon. */ { - char *v; + char *v = NULL; /* FIXME: Use a real icon size. */ - v = (char *) ecore_desktop_icon_find(a->icon_class, NULL, e_config->icon_theme); + v = (char *)ecore_desktop_icon_find(a->icon_class, NULL, e_config->icon_theme); if (v) - a->icon_path = evas_stringshare_add(v); + { + a->icon_path = evas_stringshare_add(v); + free(v); + } } if (a->icon_path)