[runtime] Fix a crash on Windows during the cleanup phase caused by using a destroyed...
[mono.git] / mono / mini / mini-runtime.c
index a306f3fdf12b97d876e70ababfe5b80020dc51e9..b597688610482ec362dd8d1ea444b0caed4c75ab 100644 (file)
@@ -3452,6 +3452,7 @@ mini_cleanup (MonoDomain *domain)
 
 #ifndef MONO_CROSS_COMPILE
        mono_domain_free (domain, TRUE);
+       mono_gc_mutex_cleanup ();
 #endif
 
 #ifdef ENABLE_LLVM