Diff between 9ec213277b46867fca20aae85ca3f76cec5ba56d and 8151afd39538207ea907857e44d79081b9e0097f
Changed Files
| File | Additions | Deletions | Status |
| audio/gateway.c | +4 | -1 | modified |
Full Patch
diff --git a/audio/gateway.c b/audio/gateway.c
index 131f93f..19f8ce3 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -182,8 +182,11 @@ static gboolean agent_sendfd(struct hf_agent *agent, int fd,
DBUS_TYPE_UINT16, &gw->version,
DBUS_TYPE_INVALID);
- if (dbus_connection_send_with_reply(dev->conn, msg, &call, -1) == FALSE)
+ if (dbus_connection_send_with_reply(dev->conn, msg,
+ &call, -1) == FALSE) {
+ dbus_message_unref(msg);
return FALSE;
+ }
dbus_pending_call_set_notify(call, notify, dev, NULL);
dbus_pending_call_unref(call);