Skip to contentSkip to conversation

Fix Unref message after it was sent

PATCH Applied Frédéric Danis 2 participants 2 messages Sep 30, 2011 – Oct 3, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Unref message after it was sent

---
 audio/gateway.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
audio/gateway.c +1 -0
index 19c7ee3..1a1c035 100644
@@ -186,6 +186,7 @@ static gboolean agent_sendfd(struct hf_agent *agent, int fd,
 
 	dbus_pending_call_set_notify(call, notify, dev, NULL);
 	dbus_pending_call_unref(call);
+	dbus_message_unref(msg);
 
 	return TRUE;
 }
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 9 lines · Frédéric Danis
---
 audio/gateway.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
audio/gateway.c +0 -0
index 19c7ee3..1a1c035 100644

audio/gateway.c static gboolean agent_sendfd(struct hf_agent *agent, int fd, · line 192

Quoted 7 lines
audio/gateway.c +1 -0
@@ -186,6 +186,7 @@ static gboolean agent_sendfd(struct hf_agent *agent, int fd,
 
 	dbus_pending_call_set_notify(call, notify, dev, NULL);
 	dbus_pending_call_unref(call);
+	dbus_message_unref(msg);
 
 	return TRUE;
 }

Applied. Thanks.

Johan