e - fm - flush all evas caches to get rid of open file handles b4 umount
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 22 Sep 2015 04:17:10 +0000 (13:17 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 22 Sep 2015 04:17:10 +0000 (13:17 +0900)
this should fix open file handles on unmount by flushing caches first.
not great, but works. long-term have evas not keep file handles open
for 0 refcount cached items.

src/bin/e_fm.c

index cc89a33..45f409b 100644 (file)
@@ -2635,6 +2635,15 @@ _e_fm2_client_unmount(const char *udi)
 
    _e_fm2_client_get();
 
+   elm_cache_all_flush();
+   edje_file_cache_flush();
+   edje_collection_cache_flush();
+   if (e_comp)
+     {
+        evas_image_cache_flush(e_comp->evas);
+        evas_font_cache_flush(e_comp->evas);
+     }
+
    return _e_fm_client_send_new(E_FM_OP_UNMOUNT, (void *)d, l);
 }