mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
dbus: memory leak, free pending calls
This commit is contained in:
parent
9ba9883693
commit
669703daec
1 changed files with 4 additions and 2 deletions
|
|
@ -380,8 +380,10 @@ pa_dbus_pending *pa_dbus_pending_new(
|
|||
void pa_dbus_pending_free(pa_dbus_pending *p) {
|
||||
pa_assert(p);
|
||||
|
||||
if (p->pending)
|
||||
dbus_pending_call_cancel(p->pending); /* p->pending is freed by cancel() */
|
||||
if (p->pending) {
|
||||
dbus_pending_call_cancel(p->pending);
|
||||
dbus_pending_call_unref(p->pending);
|
||||
}
|
||||
|
||||
if (p->message)
|
||||
dbus_message_unref(p->message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue