[pulseaudio-commits] r2111 - /trunk/src/daemon/main.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Feb 15 10:03:12 PST 2008
Author: lennart
Date: Fri Feb 15 19:03:11 2008
New Revision: 2111
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2111&root=pulseaudio&view=rev
Log:
only call pa_ltdl_done() if we called pa_ltdl_init() before
Modified:
trunk/src/daemon/main.c
Modified: trunk/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/main.c?rev=2111&root=pulseaudio&r1=2110&r2=2111&view=diff
==============================================================================
--- trunk/src/daemon/main.c (original)
+++ trunk/src/daemon/main.c Fri Feb 15 19:03:11 2008
@@ -333,6 +333,7 @@
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 @@
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 @@
WSACleanup();
#endif
- pa_ltdl_done();
+ if (ltdl_init)
+ pa_ltdl_done();
#ifdef HAVE_DBUS
dbus_shutdown();
More information about the pulseaudio-commits
mailing list