mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
dbus-util: avoid double free
This commit is contained in:
parent
205b0ba08e
commit
7d16dcb6cc
1 changed files with 1 additions and 2 deletions
|
|
@ -403,8 +403,7 @@ void pa_dbus_pending_free(pa_dbus_pending *p) {
|
||||||
pa_assert(p);
|
pa_assert(p);
|
||||||
|
|
||||||
if (p->pending) {
|
if (p->pending) {
|
||||||
dbus_pending_call_cancel(p->pending);
|
dbus_pending_call_cancel(p->pending); /* p->pending is freed by cancel() */
|
||||||
dbus_pending_call_unref(p->pending);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->message)
|
if (p->message)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue