might want to free strings that are strdup'd

SVN revision: 25687
This commit is contained in:
Carsten Haitzler 2006-09-10 10:34:17 +00:00
parent a952e6a2e0
commit 4413a33c7d
1 changed files with 6 additions and 3 deletions

View File

@ -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)