From adf5c3553ee92089a3c74afba9bd7281161a0703 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Fri, 19 Jun 2009 15:00:38 +0000 Subject: [PATCH] use new stringshared hash, pointer was being misused since api is confusing. The pointer type is really confusing, it was expecting pointer to pointer what is really weird. Cedric just added a stringshared variant that should be as fast (removing the strcmp()) and is the api one would expect. This fix a long standing bug I introduced (sorry!) when added the cache, but it was bit hard to hit as if you didn't find a collision you'd be adding to cache and never finding it. But I recently started to use icons on desktop and for some weird reason the PDF icons started to show in TAR :-P SVN revision: 41113 --- legacy/efreet/src/lib/efreet_mime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/efreet/src/lib/efreet_mime.c b/legacy/efreet/src/lib/efreet_mime.c index 07b6b4c2aa..4d24b35a14 100644 --- a/legacy/efreet/src/lib/efreet_mime.c +++ b/legacy/efreet/src/lib/efreet_mime.c @@ -366,7 +366,7 @@ efreet_mime_type_cache_clear(void) eina_hash_free(mime_icons); mime_icons_lru = NULL; } - mime_icons = eina_hash_pointer_new(EINA_FREE_CB(efreet_mime_icon_entry_head_free)); + mime_icons = eina_hash_stringshared_new(EINA_FREE_CB(efreet_mime_icon_entry_head_free)); } EAPI void