sd-bus: when an event loop terminates, explicitly close the bus

This makes sure we actually release the bus and all the messages it
references.
This commit is contained in:
Lennart Poettering
2014-07-02 17:36:47 +02:00
parent b5eca3a205
commit 7bb4d371af
+1
View File
@@ -2940,6 +2940,7 @@ static int quit_callback(sd_event_source *event, void *userdata) {
assert(event);
sd_bus_flush(bus);
sd_bus_close(bus);
return 1;
}