Diff between 72dfb1af801d1349da10622cd3f3a4cdba53339b and 0a262129e46837b1ee4e15dfff1b0dcc1c4b3e73

Changed Files

File Additions Deletions Status
gobex/gobex.c +5 -0 modified

Full Patch

diff --git a/gobex/gobex.c b/gobex/gobex.c
index 8961625..e684628 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);
 }