free the mallocs, nuke the whales

SVN revision: 17209
This commit is contained in:
tsauerbeck 2005-10-05 19:02:41 +00:00 committed by tsauerbeck
parent 93a3c07ea8
commit 7a28622910
2 changed files with 3 additions and 0 deletions

View File

@ -6497,6 +6497,7 @@ _e_border_menu_show(E_Border *bd, Evas_Coord x, Evas_Coord y, int key, Ecore_X_T
snprintf(buf, sizeof(buf),
"--win-class \"%s\" %s/.e/e/applications/all/%s.eap",
bd->client.icccm.class, homedir, name);
free(homedir);
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("Create Icon"));
e_menu_item_callback_set(mi, _e_border_menu_cb_icon_edit, buf);

View File

@ -1608,6 +1608,8 @@ e_config_profile_save(void)
homedir = e_user_homedir_get();
snprintf(buf, sizeof(buf), "%s/.e/e/config/profile.cfg",
homedir);
free(homedir);
ef = eet_open(buf, EET_FILE_MODE_WRITE);
if (ef)
{