summaryrefslogtreecommitdiff
path: root/src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-20 14:39:57 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-20 15:10:16 +0900
commit1929637aa0c12f6d2bd2a09e218fba736965a238 (patch)
tree23dc00194d1aef02f2c7e7c00beaedf8ae0dcaf5 /src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c
parent8fb948bd469e00634de874b11f4262e7e292d8a6 (diff)
evas: no loader should ever close an Eina_File anymore.
This would lead to some crash in EFM if relying on Evas to find the file format by trying all its loader. This should fix T674 and T668.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c b/src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c
index 50d1226ce4..0a15181089 100644
--- a/src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c
+++ b/src/modules/evas/loaders/pmaps/evas_image_load_pmaps.c
@@ -170,8 +170,6 @@ pmaps_buffer_open(Pmaps_Buffer *b, Eina_File *f, Eina_Bool header, int *error)
170 if (!b->map) 170 if (!b->map)
171 { 171 {
172 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; 172 *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
173 eina_file_close(b->file);
174 b->file = NULL;
175 return EINA_FALSE; 173 return EINA_FALSE;
176 } 174 }
177 175
@@ -187,9 +185,7 @@ pmaps_buffer_open(Pmaps_Buffer *b, Eina_File *f, Eina_Bool header, int *error)
187 { 185 {
188 *error = EVAS_LOAD_ERROR_CORRUPT_FILE; 186 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
189 eina_file_map_free(b->file, b->map); 187 eina_file_map_free(b->file, b->map);
190 eina_file_close(b->file);
191 b->map = NULL; 188 b->map = NULL;
192 b->file = NULL;
193 return EINA_FALSE; 189 return EINA_FALSE;
194 } 190 }
195 191