diff options
author | Max Kellermann <max@duempel.org> | 2014-06-10 23:00:47 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-06-10 23:21:09 +0200 |
commit | 31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f (patch) | |
tree | 325ea739cca88c70ed3d4f92b472be7a5b7befb9 /src/zeroconf | |
parent | dfcb5729853945f27188780fc1cf50d3c09c3188 (diff) |
zeroconf/Avahi: call dbus_shutdown() during shutdown
Make valgrind happy.
Diffstat (limited to 'src/zeroconf')
-rw-r--r-- | src/zeroconf/ZeroconfAvahi.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zeroconf/ZeroconfAvahi.cxx b/src/zeroconf/ZeroconfAvahi.cxx index 8cd09cbed..35f3dc9dc 100644 --- a/src/zeroconf/ZeroconfAvahi.cxx +++ b/src/zeroconf/ZeroconfAvahi.cxx @@ -34,6 +34,8 @@ #include <avahi-common/malloc.h> #include <avahi-common/error.h> +#include <dbus/dbus.h> + static constexpr Domain avahi_domain("avahi"); static char *avahiName; @@ -272,4 +274,6 @@ AvahiDeinit(void) avahi_free(avahiName); avahiName = nullptr; + + dbus_shutdown(); } |