summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2002-11-26 22:41:58 (GMT)
committerdavygrvy <davygrvy@pobox.com>2002-11-26 22:41:58 (GMT)
commitea08e80325e3379026080b478ed5010a34ae5df1 (patch)
tree774985e2f08e71574082052e7b08b6a69be4e16d
parentc0a30cfc05c2bb7dc8e9948c9869c54d847db951 (diff)
downloadtcl-ea08e80325e3379026080b478ed5010a34ae5df1.zip
tcl-ea08e80325e3379026080b478ed5010a34ae5df1.tar.gz
tcl-ea08e80325e3379026080b478ed5010a34ae5df1.tar.bz2
added a missing comment line to show that use of TerminateThread is evil.
-rw-r--r--win/tclWinConsole.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 7bb406b..6d3709c 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.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: tclWinConsole.c,v 1.10 2002/11/26 22:35:20 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinConsole.c,v 1.11 2002/11/26 22:41:58 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -569,6 +569,8 @@ ConsoleCloseProc(
*/
Tcl_MutexLock(&consoleMutex);
+
+ /* BUG: this leaks memory. */
TerminateThread(consolePtr->writeThread, 0);
Tcl_MutexUnlock(&consoleMutex);
}