diff options
author | Chris Robinson <[email protected]> | 2009-08-27 03:12:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-27 03:12:54 -0700 |
commit | 4ff4a7e3b9897394e33483229855cb073c2e7a32 (patch) | |
tree | 9500ed5ac91318171697fce73f5036c4d147ed99 /Alc | |
parent | 6bb14e45cee9d8d7da37675cc6933146f7a95155 (diff) |
Close some libs when deinitializing
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/portaudio.c | 4 | ||||
-rw-r--r-- | Alc/pulseaudio.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index c50214a2..20bb2d7b 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -253,4 +253,8 @@ void alc_pa_init(BackendFuncs *func_list) void alc_pa_deinit(void) { +#ifdef HAVE_DLFCN_H + dlclose(pa_handle); + pa_handle = NULL; +#endif } diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 4f39afb5..88f381b9 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -704,5 +704,11 @@ LOAD_FUNC(pa_threaded_mainloop_lock); void alc_pulse_deinit(void) //{{{ { +#ifdef _WIN32 + FreeLibrary(pa_handle); +#elif defined (HAVE_DLFCN_H) + dlclose(pa_handle); +#endif + pa_handle = NULL; } //}}} //}}} |