set data to NULL after deleting hash.

SVN revision: 26060
This commit is contained in:
sebastid 2006-09-23 11:08:06 +00:00 committed by sebastid
parent b37acd48bf
commit 609839c524
1 changed files with 2 additions and 1 deletions

View File

@ -508,7 +508,7 @@ ecore_desktop_icon_theme_get(const char *icon_theme, const char *lang)
dir->threshold = atoi(threshold);
dir->size = atoi(size);
ecore_list_append(result-> Directories, dir);
ecore_list_append(result->Directories, dir);
}
else
_ecore_desktop_icon_theme_directory_destroy(dir);
@ -521,6 +521,7 @@ ecore_desktop_icon_theme_get(const char *icon_theme, const char *lang)
result->path = strdup(theme_path);
ecore_hash_set(icon_theme_cache, strdup(icon_theme), result);
ecore_hash_destroy(result->data);
result->data = NULL;
done:
if (dir) free(dir);