efreet: use efreet_desktop_new, not get

As we free the desktop in the same func, use uncached version

SVN revision: 47567
This commit is contained in:
Sebastian Dransfeld 2010-03-29 20:11:12 +00:00
parent 68d33e8c59
commit 434759396a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ cache_add(const char *path, const char *file_id, int priority __UNUSED__, int *c
ext = strrchr(path, '.');
if (!ext || (strcmp(ext, ".desktop") && strcmp(ext, ".directory"))) return 1;
desk = efreet_desktop_get(path);
desk = efreet_desktop_new(path);
if (!desk || (desk->type != EFREET_DESKTOP_TYPE_APPLICATION &&
desk->type != EFREET_DESKTOP_TYPE_DIRECTORY))
{