Plug memleak.

SVN revision: 26090
This commit is contained in:
sebastid 2006-09-24 12:21:44 +00:00 committed by sebastid
parent a1865b0d30
commit 908e69de2e
1 changed files with 6 additions and 3 deletions

View File

@ -720,9 +720,12 @@ ecore_desktop_paths_recursive_search(const char *path, const char *file,
if ((dir_func) && (dir_func(data, info_text)))
break;
if (sub != 0)
fpath =
ecore_desktop_paths_recursive_search(info_text, file, sub,
dir_func, func, data);
{
if (fpath) free(fpath);
fpath =
ecore_desktop_paths_recursive_search(info_text, file, sub,
dir_func, func, data);
}
}
}
else