forked from enlightenment/efl
evas: preventing unlikely memory leak.
Summary: Returning from default would result in memory leak of f. Now the memory is not leaked. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3272 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
445f56741c
commit
04260b446b
|
@ -444,7 +444,7 @@ evas_image_save_file_tgv(RGBA_Image *im,
|
|||
case EVAS_COLORSPACE_RGBA8_ETC2_EAC:
|
||||
etc2_rgba8_block_pack(offset, (uint32_t *) todo, ¶m);
|
||||
break;
|
||||
default: return 0;
|
||||
default: goto on_error;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_STATS
|
||||
|
|
Loading…
Reference in New Issue