summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r--win/tclWinThrd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index e2f399f..c6438f1 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinThrd.c,v 1.33 2004/07/21 01:45:45 hobbs Exp $
+ * RCS: @(#) $Id: tclWinThrd.c,v 1.34 2004/10/27 20:53:38 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -437,7 +437,8 @@ TclFinalizeLock ()
allocOnce = 0;
}
#endif
- /* Destroy the critical section that we are holding! */
+ LeaveCriticalSection(&initLock);
+ /* Destroy the critical section that we were holding. */
DeleteCriticalSection(&initLock);
}