From 16193c926d0fe2841d25130925bffc149d6c825d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 30 Jun 2011 00:25:58 +0300 Subject: [PATCH] gobex: Remove potential write source in g_obex_unref --- gobex/gobex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gobex/gobex.c b/gobex/gobex.c index 267f61a71..1556629dc 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -556,6 +556,9 @@ void g_obex_unref(GObex *obex) if (obex->io_source > 0) g_source_remove(obex->io_source); + if (obex->write_source > 0) + g_source_remove(obex->write_source); + g_free(obex->rx_buf); g_free(obex->tx_buf); -- 2.47.3