evas: handle error case by properly deallocating memory.

This commit is contained in:
Cedric Bail 2013-09-02 12:32:54 +09:00
parent caf934e005
commit 54ef511197
1 changed files with 2 additions and 0 deletions

View File

@ -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)",