efreet: fix leak in efreet_util_desktop_exec_find()

@fix
This commit is contained in:
Mike Blumenkrantz 2015-04-22 15:32:49 -04:00
parent 67460e2d78
commit 3571e7364e
1 changed files with 1 additions and 2 deletions

View File

@ -192,8 +192,7 @@ efreet_util_desktop_exec_find(const char *exec)
exe = ecore_file_app_exe_get(names->array[i]);
if (!exe) continue;
file = ecore_file_file_get(exe);
if (!file) continue;
if (strcmp(exec, exe) && strcmp(exec, file))
if ((!file) || (strcmp(exec, exe) && strcmp(exec, file)))
{
free(exe);
continue;