From: Wootak Jung Date: Tue, 15 Dec 2020 03:46:33 +0000 (+0900) Subject: Fix svace issue X-Git-Tag: accepted/tizen/6.0/unified/20211029.040351^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=profile%2Fmobile%2Fapps%2Fnative%2Fciss.git Fix svace issue memory leak issue Change-Id: I779e81e547cf9c0a780e27ae106612a0172cb417 Signed-off-by: Wootak Jung --- 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) {