From 0a262129e46837b1ee4e15dfff1b0dcc1c4b3e73 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 4 Jul 2011 11:10:23 +0300 Subject: [PATCH] gobex: Fix removing pending request timeout callback --- gobex/gobex.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gobex/gobex.c b/gobex/gobex.c index 896162589..e684628b1 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -128,7 +128,12 @@ static void pending_pkt_free(struct pending_pkt *p) { if (p->obex != NULL) g_obex_unref(p->obex); + + if (p->timeout_id > 0) + g_source_remove(p->timeout_id); + g_obex_packet_free(p->pkt); + g_free(p); } -- 2.47.3