No need to create the list here, it is never used and will leak.

SVN revision: 26050
This commit is contained in:
sebastid 2006-09-23 09:33:34 +00:00 committed by sebastid
parent 9702e0ba8e
commit c8850bfec4
1 changed files with 1 additions and 7 deletions

View File

@ -673,13 +673,7 @@ _ecore_desktop_paths_check_and_add(Ecore_List * paths, char *path)
struct stat path_stat;
char *this_path;
if (paths == NULL)
{
paths = ecore_list_new();
if (paths == NULL)
return;
ecore_list_set_free_cb(paths, free);
}
if (!paths) return;
/* Check if we have it already. */
ecore_list_goto_first(paths);