Move FreeLibrary call to win32_global_cleanup()
[wimlib] / src / wim.c
index ac86930..823d3a4 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -704,4 +704,7 @@ wimlib_global_cleanup()
 {
        libxml_global_cleanup();
        iconv_global_cleanup();
+#ifdef __WIN32__
+       win32_global_cleanup();
+#endif
 }