emile image: close file properly.

@fix
This commit is contained in:
Hermet Park 2018-07-18 14:26:16 +09:00
parent 2916cfd86b
commit 268d3fcef5
1 changed files with 2 additions and 0 deletions

View File

@ -2391,6 +2391,8 @@ _emile_image_bind(Emile_Image *ei,
return ei;
/* File is not of that format */
if (!ei->bin_source)
eina_file_close(ei->source.f);
free(ei);
return NULL;
}