cedric pushed a commit to branch master.

commit 54ef5111979afd994184e9ceffbc4593a7e0fcf6
Author: Cedric Bail <[email protected]>
Date:   Mon Sep 2 12:32:54 2013 +0900

    evas: handle error case by properly deallocating memory.
---
 src/lib/evas/common/evas_image_load.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/evas/common/evas_image_load.c 
b/src/lib/evas/common/evas_image_load.c
index b832e3f..afca101 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)
           }
         else
           {
+             evas_image_load_func->file_close(ie->loader_data);
+             ie->loader_data = NULL;
              evas_module_unload(em);
              INF("failed to load file head using module '%s' (%p): "
                  "%s (%s)",

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Reply via email to