more profile config dialog leaks

SVN revision: 80849
This commit is contained in:
Mike Blumenkrantz 2012-12-13 13:38:32 +00:00
parent d2bad66fd5
commit 42f02658c8
1 changed files with 4 additions and 2 deletions

View File

@ -276,6 +276,7 @@ _ilist_cb_selected(void *data)
else else
e_widget_disabled_set(cfdata->o_reset, 1); e_widget_disabled_set(cfdata->o_reset, 1);
free(pdir);
pdir = strdup(buf); pdir = strdup(buf);
if (pdir) if (pdir)
{ {
@ -296,6 +297,7 @@ _ilist_cb_selected(void *data)
else else
e_widget_textblock_markup_set(cfdata->o_text, _("Unknown")); e_widget_textblock_markup_set(cfdata->o_text, _("Unknown"));
if (desk) efreet_desktop_free(desk); if (desk) efreet_desktop_free(desk);
free(pdir);
} }
static void static void
@ -325,10 +327,10 @@ _cb_delete(void *data, void *data2 __UNUSED__)
Del_Profile_Confirm_Data *d; Del_Profile_Confirm_Data *d;
char buf[4096]; char buf[4096];
if (!data) return;
d = E_NEW(Del_Profile_Confirm_Data, 1); d = E_NEW(Del_Profile_Confirm_Data, 1);
if (!d) return;
d->cfdata = data; d->cfdata = data;
if (!d->cfdata) return;
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
_("You want to delete the \"%s\" profile.<br><br>" _("You want to delete the \"%s\" profile.<br><br>"