more leak fixes

SVN revision: 17244
This commit is contained in:
tsauerbeck 2005-10-06 18:48:03 +00:00 committed by tsauerbeck
parent 49a0fde26c
commit 7ba3d1df86
1 changed files with 3 additions and 0 deletions

View File

@ -214,7 +214,10 @@ ecore_file_ls(const char *dir)
dirp = opendir(dir);
if (!dirp) return NULL;
list = ecore_list_new();
ecore_list_set_free_cb(list, free);
while ((dp = readdir(dirp)))
{
if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, "..")))