mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
bluez: gstavdtpsink: Fix D-Bus memory leak in audio
This commit is contained in:
parent
53031e0a9e
commit
a91cc4257d
1 changed files with 3 additions and 1 deletions
|
@ -1329,6 +1329,8 @@ gst_avdtp_sink_transport_acquire (GstAvdtpSink * self)
|
||||||
reply = dbus_connection_send_with_reply_and_block (self->data->conn,
|
reply = dbus_connection_send_with_reply_and_block (self->data->conn,
|
||||||
msg, -1, &err);
|
msg, -1, &err);
|
||||||
|
|
||||||
|
dbus_message_unref (msg);
|
||||||
|
|
||||||
if (dbus_error_is_set (&err))
|
if (dbus_error_is_set (&err))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
@ -1354,7 +1356,7 @@ fail:
|
||||||
dbus_error_free (&err);
|
dbus_error_free (&err);
|
||||||
|
|
||||||
if (reply)
|
if (reply)
|
||||||
dbus_message_unref (msg);
|
dbus_message_unref (reply);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue