summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-07 09:46:32 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-07-07 11:26:55 -0500
commitb3c35db955c9c711f07b2ee69cfd038315ea4ab4 (patch)
tree143168141919e58494afc85ffe91e77b0f568e72 /gatchat
parente70b1f0abd7c558e086e182fde5dc7b66a8425dc (diff)
gatppp: Unset disconnect function when unref PPP
Unset IO disconnect function when we try to destroy GAtPPP instance. After freeing the instance, the IO disconnect function should not be invoked.
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatppp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index d9b16270..63508b57 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -454,6 +454,9 @@ void g_at_ppp_unref(GAtPPP *ppp)
if (is_zero == FALSE)
return;
+ g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
+ NULL, NULL);
+
if (ppp->net)
ppp_net_free(ppp->net);