dbus-util: avoid double free

This commit is contained in:
Marc-André Lureau 2009-02-17 19:19:07 +02:00 committed by Lennart Poettering
parent 205b0ba08e
commit 7d16dcb6cc

View file

@ -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)