eio: destroy leaf before root.

SVN revision: 58732
This commit is contained in:
Cedric BAIL 2011-04-19 15:27:21 +00:00
parent ba45fbee9e
commit 79dbc39b5c
1 changed files with 4 additions and 0 deletions

View File

@ -775,6 +775,10 @@ _eio_dir_rmrf_heavy(void *data, Ecore_Thread *thread)
}
file = NULL;
/* reverse directory listing, so the leaf would be destroyed before
the root */
rmrf->dirs = eina_list_reverse(rmrf->dirs);
EINA_LIST_FREE(rmrf->dirs, dir)
{
if (rmdir(dir) != 0)