Skip to content

dbus: keep a ref to DBusConnection if reconnecting is not handled

P V requested to merge pvir/pipewire:dbus-disconnect into master

Several places in the code don't handle reconnecting DBus connections yet. In those cases, a ref to the DBusConnection handle needs to be kept, so that there's no use-after-free if it gets freed by spa_dbus if the connection is broken.

Adjust spa_dbus so that others keeping additional refs is safe.


Fixes SEGV if the dbus daemon is restarted. (Restarting dbus tends to bring many desktop environments down, so this is rare in practice...)

Merge request reports