summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-02-15 18:03:11 +0000
committerLennart Poettering <lennart@poettering.net>2008-02-15 18:03:11 +0000
commitdc3682d3f7861cabf3f58f96575d5893cdda3e0a (patch)
tree29bdb2388f62eaf5c440199398a2f3d9c96053f5 /src/daemon/main.c
parent2b8bc5cbbf049bbe9084839643e992c3e5521f3e (diff)
only call pa_ltdl_done() if we called pa_ltdl_init() before
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2111 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index acc2f028..7823180a 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -333,6 +333,7 @@ int main(int argc, char *argv[]) {
int valid_pid_file = 0;
gid_t gid = (gid_t) -1;
pa_bool_t allow_realtime, allow_high_priority;
+ pa_bool_t ltdl_init = FALSE;
#ifdef OS_IS_WIN32
pa_time_event *timer;
@@ -504,6 +505,7 @@ int main(int argc, char *argv[]) {
LTDL_SET_PRELOADED_SYMBOLS();
pa_ltdl_init();
+ ltdl_init = TRUE;
if (conf->dl_search_path)
lt_dlsetsearchpath(conf->dl_search_path);
@@ -837,7 +839,8 @@ finish:
WSACleanup();
#endif
- pa_ltdl_done();
+ if (ltdl_init)
+ pa_ltdl_done();
#ifdef HAVE_DBUS
dbus_shutdown();