From ea08e80325e3379026080b478ed5010a34ae5df1 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Tue, 26 Nov 2002 22:41:58 +0000 Subject: added a missing comment line to show that use of TerminateThread is evil. --- win/tclWinConsole.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v0.12