[PATCH BlueZ 04/19] gstavdtpsink: Fix D-Bus memory leak in audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 audio/gstavdtpsink.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
index c5392c5..b448d57 100644
--- a/audio/gstavdtpsink.c
+++ b/audio/gstavdtpsink.c
@@ -1336,6 +1336,8 @@ static gboolean gst_avdtp_sink_transport_acquire(GstAvdtpSink *self)
 	reply = dbus_connection_send_with_reply_and_block(self->data->conn,
 							msg, -1, &err);
 
+	dbus_message_unref(msg);
+
 	if (dbus_error_is_set(&err))
 		goto fail;
 
@@ -1362,7 +1364,7 @@ fail:
 	dbus_error_free(&err);
 
 	if (reply)
-		dbus_message_unref(msg);
+		dbus_message_unref(reply);
 
 	return FALSE;
 }
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux