summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_savers
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2015-11-09 16:08:53 -0800
committerCedric BAIL <cedric@osg.samsung.com>2015-11-09 16:09:18 -0800
commit04260b446b70b57a1870bac77b5d4d4cb6225af8 (patch)
tree00e598047e0c40892182372e56b1f83c45ad8c86 /src/modules/evas/image_savers
parent445f56741cded4125cabf7a0e015969cbf8586b2 (diff)
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>
Diffstat (limited to 'src/modules/evas/image_savers')
-rw-r--r--src/modules/evas/image_savers/tgv/evas_image_save_tgv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c b/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
index 88b2069f1e..2ce6ab0c56 100644
--- a/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
+++ b/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
@@ -444,7 +444,7 @@ evas_image_save_file_tgv(RGBA_Image *im,
444 case EVAS_COLORSPACE_RGBA8_ETC2_EAC: 444 case EVAS_COLORSPACE_RGBA8_ETC2_EAC:
445 etc2_rgba8_block_pack(offset, (uint32_t *) todo, &param); 445 etc2_rgba8_block_pack(offset, (uint32_t *) todo, &param);
446 break; 446 break;
447 default: return 0; 447 default: goto on_error;
448 } 448 }
449 449
450#ifdef DEBUG_STATS 450#ifdef DEBUG_STATS