summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_image_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-05 18:51:36 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-05 18:59:33 +0100
commit21efff6d3eded1dc3e6c46ac6e7ce7b89f227940 (patch)
tree937c734369b1eefb0f41475019291e85f55b2445 /src/lib/evas/common/evas_image_main.c
parentc56791180d4860d710dfe89d2c568ab65bd3fef2 (diff)
evas image - eina file - be paranoud about double closes
tracking some seemingly not so good asan hits on the eina file where we're accessing an eina file already closed... so be extra paranoid about it and set things to null after free/close...
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_image_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index a9cee630aa..e42e05d816 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -518,7 +518,11 @@ _evas_common_rgba_image_delete(Image_Entry *ie)
518 free(frame); 518 free(frame);
519 } 519 }
520 } 520 }
521 if (ie->f && !ie->flags.given_mmap) eina_file_close(ie->f); 521 if (ie->f && !ie->flags.given_mmap)
522 {
523 eina_file_close(ie->f);
524 ie->f = NULL;
525 }
522 eina_freeq_ptr_add(eina_freeq_main_get(), im, free, sizeof(*im)); 526 eina_freeq_ptr_add(eina_freeq_main_get(), im, free, sizeof(*im));
523} 527}
524 528