]> code.delx.au - pulseaudio/commitdiff
dbus-util: avoid double free
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Tue, 17 Feb 2009 17:19:07 +0000 (19:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 03:46:30 +0000 (04:46 +0100)
src/modules/dbus-util.c

index f6a986a572d72504b1f4b777486d50cc09238fad..4218bca5662e98c502ad6365d6747fed28ab249a 100644 (file)
@@ -403,8 +403,7 @@ void pa_dbus_pending_free(pa_dbus_pending *p) {
     pa_assert(p);
 
     if (p->pending) {
-        dbus_pending_call_cancel(p->pending);
-        dbus_pending_call_unref(p->pending);
+        dbus_pending_call_cancel(p->pending); /* p->pending is freed by cancel() */
     }
 
     if (p->message)