summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-20 14:39:57 +0900
committerStefan Schmidt <s.schmidt@samsung.com>2013-12-20 08:54:49 +0100
commit6abe2480fb38e7d12364fad104ce51e13467cb49 (patch)
treeab948cbfb9da1fdbabe236bd13e723ebeae324f9
parent90c2320ab7b8215d3a618591e4455801adfafd88 (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.
-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