summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_image.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_canvas_image.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c
index 3ebb2c92d9..b03808e005 100644
--- a/src/lib/evas/canvas/efl_canvas_image.c
+++ b/src/lib/evas/canvas/efl_canvas_image.c
@@ -70,6 +70,8 @@ _evas_image_file_set(Eo *eo_obj, const char *file, const char *key)
70 70
71 evas_object_async_block(obj); 71 evas_object_async_block(obj);
72 _evas_image_init_set(NULL, file, key, eo_obj, obj, o, &lo); 72 _evas_image_init_set(NULL, file, key, eo_obj, obj, o, &lo);
73 if (o->file_obj) efl_del(o->file_obj);
74 o->file_obj = NULL;
73 file2 = o->cur->u.file; 75 file2 = o->cur->u.file;
74 if (file2) 76 if (file2)
75 { 77 {
@@ -82,7 +84,11 @@ _evas_image_file_set(Eo *eo_obj, const char *file, const char *key)
82 o->engine_data = ENFN->image_load(ENDT, file2, o->cur->key, &o->load_error, &lo); 84 o->engine_data = ENFN->image_load(ENDT, file2, o->cur->key, &o->load_error, &lo);
83 o->buffer_data_set = EINA_FALSE; 85 o->buffer_data_set = EINA_FALSE;
84 _evas_image_done_set(eo_obj, obj, o); 86 _evas_image_done_set(eo_obj, obj, o);
85 87 if ((o->file_obj) && (!efl_vpath_file_keep_get(o->file_obj)))
88 {
89 efl_del(o->file_obj);
90 o->file_obj = NULL;
91 }
86 return EINA_TRUE; 92 return EINA_TRUE;
87} 93}
88 94