summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-14 21:02:18 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-14 21:02:18 +0000
commit04ed0f9536f8b211d68d7df381f0fb4dd04dc0ff (patch)
treeacb86bbbcd100e95de5c3efdfefdd9a7cceccaf9 /src
parent87753092340fc099dee86f94633da97104fbf5dc (diff)
call dbus_shutdown() before exiting, to make valgrind output more useful
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1819 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
-rw-r--r--src/daemon/main.c8
-rw-r--r--src/modules/dbus-util.c4
3 files changed, 12 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 52fa4b84..a04a91a8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -135,10 +135,9 @@ pulseaudio_SOURCES = \
daemon/main.c \
pulsecore/gccmacro.h
-pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
+pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(LIBOIL_CFLAGS) $(DBUS_CFLAGS)
pulseaudio_CPPFLAGS = $(AM_CPPFLAGS)
-pulseaudio_LDADD = $(AM_LDADD) libpulsecore.la $(LIBLTDL) \
- $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS)
+pulseaudio_LDADD = $(AM_LDADD) libpulsecore.la $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS) $(DBUS_LIBS)
# This is needed because automake doesn't properly expand the foreach below
pulseaudio_DEPENDENCIES = libpulsecore.la $(PREOPEN_LIBS)
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 93d4eb6b..e01bb231 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -58,6 +58,10 @@
#include <tcpd.h>
#endif
+#ifdef HAVE_DBUS
+#include <dbus/dbus.h>
+#endif
+
#include <pulse/mainloop.h>
#include <pulse/mainloop-signal.h>
#include <pulse/timeval.h>
@@ -745,5 +749,9 @@ finish:
libtool_done();
+#ifdef HAVE_DBUS
+ dbus_shutdown();
+#endif
+
return retval;
}
diff --git a/src/modules/dbus-util.c b/src/modules/dbus-util.c
index 9078ec72..ccc658b7 100644
--- a/src/modules/dbus-util.c
+++ b/src/modules/dbus-util.c
@@ -26,10 +26,10 @@
#include <config.h>
#endif
-#include <pulsecore/log.h>
-#include <pulsecore/props.h>
#include <pulse/xmalloc.h>
#include <pulse/timeval.h>
+#include <pulsecore/log.h>
+#include <pulsecore/props.h>
#include "dbus-util.h"