chiark / gitweb /
bus: make sure that we always keep a ref to the bus when we dispatch callbacks
[elogind.git] / src / libsystemd-bus / sd-bus.c
index 44c13d36a4fce69f09f3f440d5b8897108f8b3d9..ee5f3955695fb618ba50ef964eabf8d72ccb747a 100644 (file)
@@ -1870,6 +1870,7 @@ null_message:
 }
 
 int sd_bus_process(sd_bus *bus, sd_bus_message **ret) {
+        BUS_DONT_DESTROY(bus);
         int r;
 
         /* Returns 0 when we didn't do anything. This should cause the