summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-16 01:15:17 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-16 01:15:17 -0500
commitc4e6e24255de376965c7f8ae53e16594c2581200 (patch)
tree54aace62ff6fc4486b7247dce8207d62dab71c23
parent235ee2134f8819c5f48ae99a2d817b6b2147ad8a (diff)
bus: fix issue with reference counting
b7fc42e03 introduced a regression.
-rw-r--r--src/libsystemd/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus.c b/src/libsystemd/sd-bus.c
index b76221ef9a..95d80db240 100644
--- a/src/libsystemd/sd-bus.c
+++ b/src/libsystemd/sd-bus.c
@@ -1425,8 +1425,8 @@ static int dispatch_wqueue(sd_bus *bus) {
* it got full, then all bets are off
* anyway. */
- sd_bus_message_unref(bus->wqueue[0]);
bus->wqueue_size --;
+ sd_bus_message_unref(bus->wqueue[0]);
memmove(bus->wqueue, bus->wqueue + 1, sizeof(sd_bus_message*) * bus->wqueue_size);
bus->windex = 0;