gathdlc: Fix memory leak

This commit is contained in:
Denis Kenzior 2011-05-25 05:30:17 -05:00
parent e244e2d42a
commit afce582246
1 changed files with 2 additions and 0 deletions

View File

@ -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