fix edje cache miss

SVN revision: 83431
This commit is contained in:
Carsten Haitzler 2013-01-29 13:48:15 +00:00
parent 6bf7dd8775
commit a349bdc734
3 changed files with 10 additions and 3 deletions

View File

@ -1,9 +1,13 @@
2013-01-29 Carsten Haitzler (The Rasterman)
* Fix cache miss bug when edje cache hash is null, but cache
list may have entries.
2013-01-25 Jihoon Kim (jihoon) 2013-01-25 Jihoon Kim (jihoon)
* edje entry : Remove ecore_imf_context_reset, cursor update in mouse move event because it's useless. * edje entry : Remove ecore_imf_context_reset, cursor update in mouse move event because it's useless.
* edje entry : move ecore_imf_context_cursor_position_set from mouse down event to mouse up event * edje entry : move ecore_imf_context_cursor_position_set from mouse down event to mouse up event
2013-01-24 Sung W. Park (sung_) 2013-01-24 Sung W. Park (sung_)
* Add EVAS_GL_DIRECT_MEM_OPT to enable on-demand fallback memory * Add EVAS_GL_DIRECT_MEM_OPT to enable on-demand fallback memory

2
NEWS
View File

@ -132,3 +132,5 @@ Fixes:
* Fixed x11 error sync issue with ecore_x_image_get() * Fixed x11 error sync issue with ecore_x_image_get()
* Fix evas gif loader to return the correct frame duration * Fix evas gif loader to return the correct frame duration
* Prevent a crash even if an invalid object is swallowed into an edje object. * Prevent a crash even if an invalid object is swallowed into an edje object.
* Fix cache mise when active edje hash is empty.

View File

@ -318,7 +318,7 @@ _edje_cache_file_coll_open(const char *file, const char *coll, int *error_ret, E
if (!_edje_file_hash) if (!_edje_file_hash)
{ {
_edje_file_hash = eina_hash_string_small_new(NULL); _edje_file_hash = eina_hash_string_small_new(NULL);
goto open_new; goto find_list;
} }
edf = eina_hash_find(_edje_file_hash, file); edf = eina_hash_find(_edje_file_hash, file);
@ -333,7 +333,8 @@ _edje_cache_file_coll_open(const char *file, const char *coll, int *error_ret, E
edf->references++; edf->references++;
goto open; goto open;
} }
find_list:
EINA_LIST_FOREACH(_edje_file_cache, l, edf) EINA_LIST_FOREACH(_edje_file_cache, l, edf)
{ {
if (!strcmp(edf->path, file)) if (!strcmp(edf->path, file))