aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-06-10 23:00:47 +0200
committerMax Kellermann <max@duempel.org>2014-06-10 23:21:09 +0200
commit31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f (patch)
tree325ea739cca88c70ed3d4f92b472be7a5b7befb9 /src/zeroconf
parentdfcb5729853945f27188780fc1cf50d3c09c3188 (diff)
downloadmpd-31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f.tar.gz
mpd-31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f.tar.xz
mpd-31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f.zip
zeroconf/Avahi: call dbus_shutdown() during shutdown
Make valgrind happy.
Diffstat (limited to 'src/zeroconf')
-rw-r--r--src/zeroconf/ZeroconfAvahi.cxx4
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();
}