forked from enlightenment/efl
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
This commit is contained in:
parent
7a18ab5ebc
commit
adf5c3553e
|
@ -366,7 +366,7 @@ efreet_mime_type_cache_clear(void)
|
||||||
eina_hash_free(mime_icons);
|
eina_hash_free(mime_icons);
|
||||||
mime_icons_lru = NULL;
|
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
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue