Browse Source

obs-outputs: Fix Windows memory leak

When using alternate mutex implementations, you need to explicitly free
the mutexes with the mbedtls_threading_free_alt() function.
jp9000 5 years ago
parent
commit
dd19c29b3e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/obs-outputs/obs-outputs.c

+ 1 - 0
plugins/obs-outputs/obs-outputs.c

@@ -77,6 +77,7 @@ bool obs_module_load(void)
 void obs_module_unload(void)
 {
 #ifdef _WIN32
+	mbedtls_threading_free_alt();
 	WSACleanup();
 #endif
 }