mirror of
https://github.com/systemd/systemd.git
synced 2025-03-01 08:58:29 +03:00
bus: fix issue with reference counting
b7fc42e03 introduced a regression.
This commit is contained in:
parent
235ee2134f
commit
c4e6e24255
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user