summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-19 20:35:33 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-19 20:36:17 +0100
commit23abf5d5820ed9f24e8fe92fad32a207fe75398c (patch)
tree2dcd2472e74d76fc08563e3d8f5ad4780e702e3c /src/libsystemd/sd-bus
parent8f61afd8d8e17c4e4970435e857d84465f019354 (diff)
bus: fix unreffing logic
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/sd-bus.c3
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);