summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-13 15:29:09 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-13 16:51:49 +0900
commit76244d89a75c0a465c3b4eb63d642b6ad14a3d74 (patch)
tree3c6a1055619f36f5e6aed8c410c3087bf421b790 /src/lib/edje
parent95d83e80406ddf48305cdbc91eecd340ecc4c6e1 (diff)
vpath file - add a keey property to know if obj should be kept around
if its a file downloading (to a tmp location) or a zip/tar/whatever file being extracted also to a tmp location and that tmp file needs to be removed after ...you need to keep the obj around to know when to delete the file. this makes the keeping optional and you query if the vpath obj is meant to be kept or not. if it's not it's safe to del immediately. this cuts down 1 obj per image obj/edje obj when generally unused. save some mem.
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_smart.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index b769f59dd8..583e714310 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -395,6 +395,11 @@ _edje_object_efl_file_file_set(Eo *obj, Edje *ed, const char *file, const char *
395 file2 = efl_vpath_file_result_get(ed->file_obj); 395 file2 = efl_vpath_file_result_get(ed->file_obj);
396 396
397 f = eina_file_open(file2, EINA_FALSE); 397 f = eina_file_open(file2, EINA_FALSE);
398 if ((ed->file_obj) && (!efl_vpath_file_keep_get(ed->file_obj)))
399 {
400 efl_del(ed->file_obj);
401 ed->file_obj = NULL;
402 }
398 if (!f) 403 if (!f)
399 { 404 {
400 efl_del(ed->file_obj); 405 efl_del(ed->file_obj);