diff options
-rw-r--r-- | gatchat/gatppp.c | 5 |
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); |