forked from enlightenment/efl
Fix memleak reported by Coverity.
NB: Fixes Coverity CID1039652 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1ea718c283
commit
461e406b91
|
@ -798,6 +798,7 @@ evas_image_load_specific_frame(Eina_File *f,
|
||||||
if (!gif_frame)
|
if (!gif_frame)
|
||||||
{
|
{
|
||||||
*error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
|
*error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
|
||||||
|
free(frame);
|
||||||
goto on_error;
|
goto on_error;
|
||||||
}
|
}
|
||||||
frame->info = gif_frame;
|
frame->info = gif_frame;
|
||||||
|
@ -805,6 +806,8 @@ evas_image_load_specific_frame(Eina_File *f,
|
||||||
if (!_evas_image_load_frame(f, opts, prop, animated, gif, frame, LOAD_FRAME_DATA_INFO, error))
|
if (!_evas_image_load_frame(f, opts, prop, animated, gif, frame, LOAD_FRAME_DATA_INFO, error))
|
||||||
{
|
{
|
||||||
*error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
|
*error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
|
||||||
|
free(gif_frame);
|
||||||
|
free(frame);
|
||||||
goto on_error;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue