gathdlc: Free the main HDLC structure on unref

This commit is contained in:
Denis Kenzior 2010-06-11 09:15:03 -05:00
parent 45c1bcb1d9
commit 75e6a4707b
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ void g_at_hdlc_unref(GAtHDLC *hdlc)
ring_buffer_free(hdlc->write_buffer);
g_free(hdlc->decode_buffer);
g_free(hdlc);
}
void g_at_hdlc_set_debug(GAtHDLC *hdlc, GAtDebugFunc func, gpointer user_data)