From afce58224616c57f8878680e8c9114226b93bdc8 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 25 May 2011 05:30:17 -0500 Subject: gathdlc: Fix memory leak --- gatchat/gathdlc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gatchat/gathdlc.c') diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c index 272d7b59..1d5f239c 100644 --- a/gatchat/gathdlc.c +++ b/gatchat/gathdlc.c @@ -425,6 +425,8 @@ void g_at_hdlc_unref(GAtHDLC *hdlc) g_free(hdlc->decode_buffer); + g_timer_destroy(hdlc->timer); + if (hdlc->in_read_handler) hdlc->destroyed = TRUE; else -- cgit v1.2.3