diff --git a/src/win32/thread.c b/src/win32/thread.c index 60b4232e047cc1b83d2ae5966e9afbb71a52c982..91f3c40eaa8410222c40cbba03224f12272cf953 100644 --- a/src/win32/thread.c +++ b/src/win32/thread.c @@ -785,8 +785,6 @@ void vlc_threads_setup(libvlc_int_t *vlc) #define LOOKUP(s) (((s##_) = (void *)GetProcAddress(h, #s)) != NULL) -extern vlc_rwlock_t config_lock; - BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved) { (void) hinstDll; @@ -816,12 +814,10 @@ BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved) InitializeCriticalSection(&setup_lock); InitializeCriticalSection(&super_mutex); InitializeConditionVariable(&super_variable); - vlc_rwlock_init (&config_lock); break; } case DLL_PROCESS_DETACH: - vlc_rwlock_destroy (&config_lock); DeleteCriticalSection(&super_mutex); DeleteCriticalSection(&setup_lock); TlsFree(thread_key);