diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-19 20:35:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-19 20:36:17 +0100 |
commit | 23abf5d5820ed9f24e8fe92fad32a207fe75398c (patch) | |
tree | 2dcd2472e74d76fc08563e3d8f5ad4780e702e3c /src | |
parent | 8f61afd8d8e17c4e4970435e857d84465f019354 (diff) |
bus: fix unreffing logic
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 118769086e..e494cd2ba9 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -1365,7 +1365,8 @@ _public_ sd_bus *sd_bus_unref(sd_bus *bus) { * the messages and thus implicitly also kill our own * last references */ - bus_reset_queues(bus); + if (q) + bus_reset_queues(bus); } i = REFCNT_DEC(bus->n_ref); |