chiark / gitweb /
bus: make sure that we always keep a ref to the bus when we dispatch callbacks
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Oct 2013 17:53:56 +0000 (19:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Oct 2013 17:53:56 +0000 (19:53 +0200)
commit8ce2afd6347dcf01e33fe1ff257e2b0fffa8edfe
treef90e1b693239377c283be59ead467993887c5ec2
parentd68888227d2e1093f8e18753ba2e10a1cab7c6ad
bus: make sure that we always keep a ref to the bus when we dispatch callbacks

Otherwise the callback might unref the bus we are processing and destroy
the object while we are processing it.
src/libsystemd-bus/bus-internal.h
src/libsystemd-bus/bus-objects.c
src/libsystemd-bus/sd-bus.c