diff options
-rw-r--r-- | gatchat/gathdlc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c index 2d9eb6a6..00576022 100644 --- a/gatchat/gathdlc.c +++ b/gatchat/gathdlc.c @@ -277,6 +277,9 @@ void g_at_hdlc_unref(GAtHDLC *hdlc) hdlc->record_fd = -1; } + g_at_io_set_write_handler(hdlc->io, NULL, NULL); + g_at_io_set_read_handler(hdlc->io, NULL, NULL); + g_at_io_unref(hdlc->io); hdlc->io = NULL; |