summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_image_load.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-09-02 12:32:54 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-09-02 12:33:21 +0900
commit54ef5111979afd994184e9ceffbc4593a7e0fcf6 (patch)
tree0ee3fefb36c7dc6d15532e954909ca84c1d00fca /src/lib/evas/common/evas_image_load.c
parentcaf934e0059bffe0d9611a0b7a1ce4157217734e (diff)
evas: handle error case by properly deallocating memory.
Diffstat (limited to 'src/lib/evas/common/evas_image_load.c')
-rw-r--r--src/lib/evas/common/evas_image_load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index b832e3fc82..afca101deb 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -195,6 +195,8 @@ _evas_image_file_header(Evas_Module *em, Image_Entry *ie, int *error)
195 } 195 }
196 else 196 else
197 { 197 {
198 evas_image_load_func->file_close(ie->loader_data);
199 ie->loader_data = NULL;
198 evas_module_unload(em); 200 evas_module_unload(em);
199 INF("failed to load file head using module '%s' (%p): " 201 INF("failed to load file head using module '%s' (%p): "
200 "%s (%s)", 202 "%s (%s)",