summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-05-22 08:34:21 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-05-24 12:25:07 -0500
commit72dee45005812ade33f50e5400b60e3fff5f8c7f (patch)
treea325d61ad37bd19ed4cc6170173dc71876011906 /gatchat/gatppp.c
parentd82c5ce1fafd9a83350beb4807e2bba3dd1f79b8 (diff)
downloadofono-72dee45005812ade33f50e5400b60e3fff5f8c7f.tar.bz2
gatppp: Make sure to clean up guard_timeout_source
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 74942533..200bd5ce 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -602,6 +602,11 @@ void g_at_ppp_unref(GAtPPP *ppp)
ppp->ppp_dead_source = 0;
}
+ if (ppp->guard_timeout_source) {
+ g_source_remove(ppp->guard_timeout_source);
+ ppp->guard_timeout_source = 0;
+ }
+
g_at_hdlc_unref(ppp->hdlc);
g_free(ppp);