forked from enlightenment/efl
eet_mmap uses reader/writers caches for lookup.. but never ADDs to
these caches! bad bad bad!
This commit is contained in:
parent
425986b4fe
commit
95b91ad9b9
|
@ -1473,6 +1473,9 @@ eet_mmap(Eina_File *file)
|
||||||
if (!ef)
|
if (!ef)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
|
if (ef->mode == EET_FILE_MODE_READ)
|
||||||
|
eet_cache_add(ef, &eet_readers, &eet_readers_num, &eet_readers_alloc);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
UNLOCK_CACHE;
|
UNLOCK_CACHE;
|
||||||
return ef;
|
return ef;
|
||||||
|
|
Loading…
Reference in New Issue