summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2017-01-26 15:27:24 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2017-01-26 15:28:07 +0900
commit8c2ee6bd63612a5d47bc84b7d174b50815d99831 (patch)
tree46a5f0ba98a428aaf6a658db39830d7a26b96817
parent5f2960f37e61d73563fbfb11733f45c458a7af74 (diff)
downloadnet-popup-submit/tizen_3.0/20170201.014007.tar.gz
net-popup-submit/tizen_3.0/20170201.014007.tar.bz2
net-popup-submit/tizen_3.0/20170201.014007.zip
Change-Id: Iab66a316bd801a84a53521f15f7d5e851ccdfed2 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rwxr-xr-xsrc/net-popup.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/net-popup.c b/src/net-popup.c
index d5241ec..2ed0a0f 100755
--- a/src/net-popup.c
+++ b/src/net-popup.c
@@ -197,11 +197,27 @@ static void __net_popup_terminate(void *data)
ecore_event_handler_del(ecore_event_evas_handler);
ecore_event_evas_handler = NULL;
}
+
if (ecore_event_evas_quick_panel_handler) {
ecore_event_handler_del(ecore_event_evas_quick_panel_handler);
ecore_event_evas_quick_panel_handler = NULL;
}
+ if (g_req_handle) {
+ app_control_destroy(g_req_handle);
+ g_req_handle = NULL;
+ }
+
+ if (resp_popup_mode) {
+ free(resp_popup_mode);
+ resp_popup_mode = NULL;
+ }
+
+ if (iface_name) {
+ free(iface_name);
+ iface_name = NULL;
+ }
+
return;
}
@@ -273,9 +289,18 @@ static void __net_popup_service_cb(app_control_h request, void *data)
if (operation != NULL && g_str_equal(operation, APP_CONTROL_OPERATION_SETTING_VPN)) {
app_control_clone(&g_req_handle, request);
__net_popup_show_vpn_popup(request, data);
+ if (operation) {
+ free(operation);
+ operation = NULL;
+ }
return;
}
+ if (operation) {
+ free(operation);
+ operation = NULL;
+ }
+
ret = app_control_get_extra_data(request, "_SYSPOPUP_TYPE_", &type);
if (APP_CONTROL_ERROR_NONE != ret) {
log_print(NET_POPUP, "Failed to get _SYSPOPUP_TYPE_ ret = %d", ret);