2011-09-30 14:17:31

by Frederic Danis

[permalink] [raw]
Subject: [PATCH] Fix Unref message after it was sent

---
audio/gateway.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/audio/gateway.c b/audio/gateway.c
index 19c7ee3..1a1c035 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -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;
}
--
1.7.1



2011-10-03 08:55:34

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix Unref message after it was sent

Hi Fr?d?ric,

On Fri, Sep 30, 2011, Fr?d?ric Danis wrote:
> ---
> audio/gateway.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/audio/gateway.c b/audio/gateway.c
> index 19c7ee3..1a1c035 100644
> --- a/audio/gateway.c
> +++ b/audio/gateway.c
> @@ -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