Change-Id: I0124841f51fddc6d235aebc89159d7983dafce92
Signed-off-by: Akash Kumar <akash1.kumar@samsung.com>
common_util_set_system_registry(VCONFKEY_WIFI_UG_RUN_STATE,
VCONFKEY_WIFI_UG_RUN_STATE_OFF);
- if (!ug || !priv) {
+ if (!ug || !priv || !ug_app_state) {
__COMMON_FUNC_EXIT__;
return;
}
ug_app_state->lbutton_setup_wizard_prev = NULL;
}
- if (ug_app_state != NULL) {
- g_free(ug_app_state);
- ug_app_state = NULL;
- }
+ g_free(ug_app_state);
+ ug_app_state = NULL;
if (ugd->base != NULL) {
evas_object_del(ugd->base);