Close some libs when deinitializing

This commit is contained in:
Chris Robinson 2009-08-27 03:12:54 -07:00
parent 6bb14e45ce
commit 4ff4a7e3b9
2 changed files with 10 additions and 0 deletions

View File

@ -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
}

View File

@ -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;
} //}}}
//}}}