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);
}
ad->popup = popup;
+ g_free(launching_mode);
+ launching_mode = NULL;
return ret;
}
_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) {