mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
fix dbus message leaks
I reviewed all places that call dbus_connection_send_with_reply_and_block(), and found several places where dbus messages aren't properly unreffed.
This commit is contained in:
parent
e538e19664
commit
abdd14d5e0
4 changed files with 32 additions and 4 deletions
|
|
@ -474,6 +474,9 @@ int rd_acquire(
|
|||
goto fail;
|
||||
}
|
||||
|
||||
dbus_message_unref(m);
|
||||
m = NULL;
|
||||
|
||||
if (!dbus_message_get_args(
|
||||
reply,
|
||||
error,
|
||||
|
|
@ -483,6 +486,9 @@ int rd_acquire(
|
|||
goto fail;
|
||||
}
|
||||
|
||||
dbus_message_unref(reply);
|
||||
reply = NULL;
|
||||
|
||||
if (!good) {
|
||||
r = -EBUSY;
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue