From 72dee45005812ade33f50e5400b60e3fff5f8c7f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sun, 22 May 2011 08:34:21 -0500 Subject: [PATCH] gatppp: Make sure to clean up guard_timeout_source --- gatchat/gatppp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index 7494253..200bd5c 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); -- 2.7.4