]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: make bus_slot_disconnect() also unref the slot object
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Jul 2018 08:53:22 +0000 (17:53 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jul 2018 18:54:19 +0000 (20:54 +0200)
commit2e7e8e34aa1acbe3c47b8931d67a4b6dba3d5652
treefa07e7f504d3cd837c284f9dfdeadf63b1896823
parent3bdfea0820777c49fe41b6338c11b6da6b914544
sd-bus: make bus_slot_disconnect() also unref the slot object

This makes bus_slot_disconnect() unref the slot object from bus when
`unref == true` and it is floating, as the function removes the
reference from the relevant bus object.

This reverts 20d4ee2cbc21e0c4d2dd6c01d5a18a4cf0d98222, as it
introduces #9604.

Fixes #9604.
src/libsystemd/sd-bus/bus-slot.c
src/libsystemd/sd-bus/bus-slot.h
src/libsystemd/sd-bus/sd-bus.c