summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_loaders/dds
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/modules/evas/image_loaders/dds
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/modules/evas/image_loaders/dds/evas_image_load_dds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/image_loaders/dds/evas_image_load_dds.c b/src/modules/evas/image_loaders/dds/evas_image_load_dds.c
index e77c3e960b..d24707c9ae 100644
--- a/src/modules/evas/image_loaders/dds/evas_image_load_dds.c
+++ b/src/modules/evas/image_loaders/dds/evas_image_load_dds.c
@@ -145,7 +145,7 @@ evas_image_load_file_close_dds(void *loader_data)
145{ 145{
146 Evas_Loader_Internal *loader = loader_data; 146 Evas_Loader_Internal *loader = loader_data;
147 147
148 eina_file_close(loader->f); 148 if (loader->f) eina_file_close(loader->f);
149 free(loader); 149 free(loader);
150} 150}
151 151