diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-02-28 12:14:48 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-28 16:13:56 -0600 |
commit | 09ca5aaef08887567c2f95a80c2549a3b480678f (patch) | |
tree | 6ec324b98844a68f3ecd15bb9ce0f0eb38147e03 /gatchat/gathdlc.c | |
parent | 1cbe91090df651278f853b56738859b0c9969929 (diff) | |
download | ofono-09ca5aaef08887567c2f95a80c2549a3b480678f.tar.bz2 |
gathdlc: Unregister read / write handlers
When GAtHDLC is being unregistered make sure to unregister read / write
handlers so as not to crash.
Diffstat (limited to 'gatchat/gathdlc.c')
-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; |