summaryrefslogtreecommitdiff
path: root/src/lib/eet/eet_lib.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-05-10 09:00:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-05-10 09:00:02 +0900
commit95b91ad9b9c70f02975d4b0cf17f84a84a6ed44d (patch)
tree32b88f8189e0083049b4fb387bd5450efb4d9d50 /src/lib/eet/eet_lib.c
parent425986b4fedc9496774d848a40059e538b5709f8 (diff)
eet_mmap uses reader/writers caches for lookup.. but never ADDs to
these caches! bad bad bad!
Diffstat (limited to 'src/lib/eet/eet_lib.c')
-rw-r--r--src/lib/eet/eet_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 9c9b636512..c1eeb4a436 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -1473,6 +1473,9 @@ eet_mmap(Eina_File *file)
1473 if (!ef) 1473 if (!ef)
1474 goto on_error; 1474 goto on_error;
1475 1475
1476 if (ef->mode == EET_FILE_MODE_READ)
1477 eet_cache_add(ef, &eet_readers, &eet_readers_num, &eet_readers_alloc);
1478
1476 done: 1479 done:
1477 UNLOCK_CACHE; 1480 UNLOCK_CACHE;
1478 return ef; 1481 return ef;