When using alternate mutex implementations, you need to explicitly free the mutexes with the mbedtls_threading_free_alt() function.
@@ -77,6 +77,7 @@ bool obs_module_load(void)
void obs_module_unload(void)
{
#ifdef _WIN32
+ mbedtls_threading_free_alt();
WSACleanup();
#endif
}