summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-01-10 15:03:49 (GMT)
committervincentdarley <vincentdarley>2003-01-10 15:03:49 (GMT)
commit73064e4b76a9357a6054724dc8dda93a6fec52e9 (patch)
tree80a34d014f8cf54e0b51b3713808dacf6861b179 /generic/tclIOUtil.c
parent3bc8130a8799cf76ffd3e03e8de53709e3d1898a (diff)
downloadtcl-73064e4b76a9357a6054724dc8dda93a6fec52e9.zip
tcl-73064e4b76a9357a6054724dc8dda93a6fec52e9.tar.gz
tcl-73064e4b76a9357a6054724dc8dda93a6fec52e9.tar.bz2
WinTcl crash on exit fix
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index b1bca76..e74e94e 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.68 2003/01/09 10:38:29 vincentdarley Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.69 2003/01/10 15:03:53 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -654,6 +654,15 @@ TclFinalizeFilesystem() {
#ifdef TCL_THREADS
filesystemOkToModify = NULL;
#endif
+ /*
+ * Cleans up the win32 API filesystem proc lookup table and
+ * any special encodings which have been loaded. This must
+ * happen after the filesystem has been closed down, or crashes
+ * can result (especially with vfs).
+ */
+#ifdef __WIN32__
+ TclWinFilesystemAndEncodingsCleanup();
+#endif
}
/*