Use correct variable when searching for .desktop file.

Don't allow missing .desktop files.


SVN revision: 29055
This commit is contained in:
Sebastian Dransfeld 2007-03-24 22:49:59 +00:00
parent 870067d6a9
commit 5258345822
2 changed files with 4 additions and 2 deletions

View File

@ -252,7 +252,9 @@ efreet_desktop_new(const char *file)
if (!ini->data)
{
efreet_ini_free(ini);
return desktop;
IF_FREE(desktop->orig_path);
free(desktop);
return NULL;
}
ok = efreet_ini_section_set(ini, "Desktop Entry");

View File

@ -73,7 +73,7 @@ efreet_util_desktop_by_file_id_get(const char *file_id)
while (p)
{
snprintf(buf, sizeof(buf), "%s/%s", dir, file_id);
snprintf(buf, sizeof(buf), "%s/%s", dir, tmp);
desktop = efreet_desktop_get(buf);
if (desktop) break;
p = strchr(p, '-');