diff options
| author | dgp@users.sourceforge.net <dgp> | 2001-09-28 00:41:20 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2001-09-28 00:41:20 (GMT) |
| commit | a4a62e2d8ac9210343b44309922449e4170a2731 (patch) | |
| tree | 48f7d05c53ea3fa8fea7f37e7aabc9a17cedf25a /generic/tclIO.c | |
| parent | 9e772824cee6f8fe5d3fab7d2bc7c953ea2f3a72 (diff) | |
| download | tcl-a4a62e2d8ac9210343b44309922449e4170a2731.zip tcl-a4a62e2d8ac9210343b44309922449e4170a2731.tar.gz tcl-a4a62e2d8ac9210343b44309922449e4170a2731.tar.bz2 | |
* Added Tcl_Preserve()
and Tcl_Release() to fix segfault introduced by the 2001-09-26
changes. [Bug 465494]
Diffstat (limited to 'generic/tclIO.c')
| -rw-r--r-- | generic/tclIO.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 7f5cc30..5233d73 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.36 2001/09/27 02:12:19 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIO.c,v 1.37 2001/09/28 00:41:20 dgp Exp $ */ #include "tclInt.h" @@ -6735,10 +6735,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); |
