destroy group_list if it is empty, then set it to NULL

SVN revision: 28616
This commit is contained in:
doursse 2007-03-08 00:17:22 +00:00 committed by doursse
parent 247d9397af
commit 33076577dd
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ ecore_path_group_del(int group_id)
if (ecore_list_goto(group_list, group))
ecore_list_remove(group_list);
if (ecore_list_is_empty(group_list))
{
ecore_list_destroy(group_list);
group_list = NULL;
}
free(group->name);
free(group);
}