summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-09-28 02:26:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-09-28 02:26:35 (GMT)
commit0ad880e7db2ba6160f6b63636975b41b94c639e4 (patch)
tree2c24fb81e86ad1dc371ef65271c3f45bc62c209e /generic/tclIO.c
parent5eabea9a35028735405f71cb9a56e59414c2d511 (diff)
downloadtcl-0ad880e7db2ba6160f6b63636975b41b94c639e4.zip
tcl-0ad880e7db2ba6160f6b63636975b41b94c639e4.tar.gz
tcl-0ad880e7db2ba6160f6b63636975b41b94c639e4.tar.bz2
* generic/tclIO.c (ChannelTimerProc): Added Tcl_Preserve()
and Tcl_Release() to fix segfault introduced by the 2001-09-26 changes. [Bug 465494] * doc/TCL_MEM_DEBUG.3: Updated out-of-date reference to #define GUARD_SIZE.
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index dafc6af..5b00c3d 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIO.c,v 1.20.2.9 2001/09/27 02:26:42 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.20.2.10 2001/09/28 02:26:35 dgp Exp $
*/
#include "tclInt.h"
@@ -6311,10 +6311,11 @@ ChannelTimerProc(clientData)
(Tcl_ChannelBlockModeProc(chanPtr->typePtr) == NULL)) {
statePtr->flags |= CHANNEL_TIMER_FEV;
}
-
+ Tcl_Preserve(statePtr);
Tcl_NotifyChannel((Tcl_Channel)chanPtr, TCL_READABLE);
statePtr->flags &= ~CHANNEL_TIMER_FEV;
+ Tcl_Release(statePtr);
} else {
statePtr->timer = NULL;
UpdateInterest(chanPtr);