mem leak patches from holger :)

SVN revision: 13845
This commit is contained in:
Carsten Haitzler 2005-03-22 09:20:12 +00:00
parent b56bc9790c
commit 1cf0b6002d
2 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,7 @@ e_app_new(const char *path, int scan_subdirs)
error:
if (a->monitor) ecore_file_monitor_del(a->monitor);
if (a->path) free(a->path);
_e_app_fields_empty(a);
free(a);
return NULL;
@ -387,6 +388,8 @@ _e_app_free(E_App *a)
_e_apps = evas_hash_del(_e_apps, a->path, a);
_e_apps_list = evas_list_remove(_e_apps_list, a);
_e_app_fields_empty(a);
if (a->path)
free(a->path);
free(a);
}

View File

@ -426,6 +426,8 @@ _e_container_free(E_Container *con)
{
ecore_x_window_del(con->win);
}
if (con->name)
free(con->name);
free(con);
}