fix leaks in profile config dialog

SVN revision: 80848
This commit is contained in:
Mike Blumenkrantz 2012-12-13 13:37:04 +00:00
parent 5e04704e3e
commit d2bad66fd5
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,8 @@ _ilist_fill(E_Config_Dialog_Data *cfdata)
if (!desk)
{
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s/", prof);
pdir = strdupa(buf);
free(pdir);
pdir = strdup(buf);
if (pdir)
{
snprintf(buf, sizeof(buf), "%s/profile.desktop", pdir);
@ -222,6 +223,7 @@ _ilist_fill(E_Config_Dialog_Data *cfdata)
ic = e_util_icon_add(buf, evas);
e_widget_ilist_append(cfdata->o_list, ic, label, _ilist_cb_selected, cfdata, prof);
free(prof);
free(pdir);
if (desk) efreet_desktop_free(desk);
}
if (profiles) eina_list_free(profiles);