From de16dfe9125f522fff22707632587e5f582d6eb1 Mon Sep 17 00:00:00 2001 From: Arek Lichwa Date: Fri, 15 Jul 2011 13:38:31 +0200 Subject: [PATCH] Fix memory leak in sap plugin Without this patch, when dropping RFCOMM channel to sap server, the component's channel cleanup process doesn't release assigned GIOChannel resources since conn->io is set to NULL before calling sap_conn_remove (which would normally do the g_io_channel_unref). --- sap/server.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sap/server.c b/sap/server.c index c55aa6e40..8bd8fe1b8 100644 --- a/sap/server.c +++ b/sap/server.c @@ -1122,7 +1122,6 @@ static void sap_io_destroy(void *data) conn->state == SAP_STATE_GRACEFUL_DISCONNECT) sap_disconnect_req(NULL, 1); - conn->io = NULL; sap_conn_remove(conn); } } -- 2.47.3