aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 344a8496f8..83b3ee7eec 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -425,8 +425,8 @@ _image_init_set(const Eina_File *f, const char *file, const char *key,
{
if (!state_write->mmaped_source)
eina_stringshare_del(state_write->u.file);
- else if (state_write->u.f)
- eina_file_close(state_write->u.f);
+ else if (state_write->u.f)
+ eina_file_close(state_write->u.f);
state_write->u.f = eina_file_dup(f);
}
else
@@ -434,13 +434,15 @@ _image_init_set(const Eina_File *f, const char *file, const char *key,
if (!state_write->mmaped_source)
eina_stringshare_replace(&state_write->u.file, file);
else
- {
+ {
if (state_write->u.f) eina_file_close(state_write->u.f);
state_write->u.file = eina_stringshare_add(file);
- }
+ }
}
state_write->mmaped_source = !!f;
eina_stringshare_replace(&state_write->key, key);
+
+ state_write->opaque_valid = 0;
}
EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);