From 6d119c50c20f8ded7d80bea1fae70ba2a55b34a0 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Tue, 15 Dec 2020 12:46:33 +0900 Subject: [PATCH] Fix svace issue memory leak issue Change-Id: I779e81e547cf9c0a780e27ae106612a0172cb417 Signed-off-by: Wootak Jung --- src/ciss-main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ciss-main.c b/src/ciss-main.c index 7f43812..ac39340 100644 --- a/src/ciss-main.c +++ b/src/ciss-main.c @@ -401,7 +401,11 @@ static int __ciss_relaunch_handler(void *data) if (ad->layout_main == NULL) { Evas_Object *ly = NULL; ly = _ciss_create_layout_main(ad->conformant); - retv_if(ly == NULL, -1); + if (ly == NULL) { + g_free(launching_mode); + launching_mode = NULL; + return -1; + } ad->layout_main = ly; evas_object_show(ly); } @@ -425,6 +429,8 @@ static int __ciss_relaunch_handler(void *data) ad->popup = popup; + g_free(launching_mode); + launching_mode = NULL; return ret; } @@ -447,7 +453,7 @@ static int __ciss_relaunch_handler(void *data) _ciss_create_error_popup(ad->layout_main, ciss_err_code, 2.0, ad); } } - } else if (strncmp(launching_mode, "RESP", 4) == 0) { + } else if (strncmp(launching_mode, "RESP", 4) == 0) { warn("RESP"); err = app_control_get_extra_data(ad->app_control_handle, "CISS_SIM_INDEX", &sim_index); if (err != APP_CONTROL_ERROR_NONE) { -- 2.7.4