summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-05-25 05:30:17 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-05-25 05:30:17 -0500
commitafce58224616c57f8878680e8c9114226b93bdc8 (patch)
treeb3b0948ddecacc95931dc234f38d6c64c6536e4a /gatchat
parente244e2d42a641e52f58f1c376a302d5a4cd7f905 (diff)
downloadofono-afce58224616c57f8878680e8c9114226b93bdc8.tar.bz2
gathdlc: Fix memory leak
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gathdlc.c2
1 files changed, 2 insertions, 0 deletions
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