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:
Srivardhan Hebbar 2015-11-09 16:08:53 -08:00 committed by Cedric BAIL
parent 445f56741c
commit 04260b446b
1 changed files with 1 additions and 1 deletions

View File

@ -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, &param);
break;
default: return 0;
default: goto on_error;
}
#ifdef DEBUG_STATS