summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2001-09-28 00:41:19 (GMT)
committerdgp <dgp@noemail.net>2001-09-28 00:41:19 (GMT)
commitc68a91fc80c46305eed8c731d1bd00ece584b1a6 (patch)
tree48f7d05c53ea3fa8fea7f37e7aabc9a17cedf25a /generic/tclIO.c
parentb791d1b142f9c53ebb94143063d38fcd32ea8150 (diff)
downloadtcl-c68a91fc80c46305eed8c731d1bd00ece584b1a6.zip
tcl-c68a91fc80c46305eed8c731d1bd00ece584b1a6.tar.gz
tcl-c68a91fc80c46305eed8c731d1bd00ece584b1a6.tar.bz2
* Added Tcl_Preserve()
and Tcl_Release() to fix segfault introduced by the 2001-09-26 changes. [Bug 465494] FossilOrigin-Name: 70efe784b9651ace53682420aa49748361a5f40c
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 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);