[WGID-18516] Fix double free issue 40/80440/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Jul 2016 06:15:59 +0000 (15:15 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Jul 2016 06:16:12 +0000 (15:16 +0900)
Change-Id: Ic27fd584f51095c6992d321761c2dcb640ee16fd
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/wifi-efl-ug.spec
sources/wifi-syspopup/viewer-popups/view-main.c

index 5a7721c..4d96b9e 100644 (file)
@@ -1,7 +1,7 @@
 %define _unpackaged_files_terminate_build 0
 Name:          wifi-efl-ug
 Summary:       Wi-Fi UI Gadget for TIZEN
-Version:       1.0.194
+Version:       1.0.195
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index e467907..f52d027 100755 (executable)
@@ -124,13 +124,16 @@ static void __popup_ok_cb(void *data, Evas_Object *obj, void *event_info)
        default:
                ERROR_LOG(SP_NAME_ERR, "Wrong security mode: %d", sec_type);
                passwd_popup_free(devpkr_app_state->passpopup);
+               devpkr_app_state->passpopup = NULL;
                break;
        }
 
        wlan_manager_connect_with_password(ap, password);
 
-       passwd_popup_free(devpkr_app_state->passpopup);
-       devpkr_app_state->passpopup = NULL;
+       if (devpkr_app_state->passpopup) {
+               passwd_popup_free(devpkr_app_state->passpopup);
+               devpkr_app_state->passpopup = NULL;
+       }
 
 popup_ok_exit:
        g_free((gpointer)password);