diff options
author | dgp <dgp@noemail.net> | 2007-05-07 19:45:32 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-05-07 19:45:32 (GMT) |
commit | 53643948b9263c73f70be840dbd546dcd0b12c45 (patch) | |
tree | 29ed64b0e7e0caaaf8f2c0f26ced6a0aaa35d4fa /generic/tclLink.c | |
parent | f27042136a848f899d742a9dd416d872f8cb8d3c (diff) | |
download | tcl-53643948b9263c73f70be840dbd546dcd0b12c45.zip tcl-53643948b9263c73f70be840dbd546dcd0b12c45.tar.gz tcl-53643948b9263c73f70be840dbd546dcd0b12c45.tar.bz2 |
[Tcl Bug 1706140]
* generic/tclLink.c (LinkTraceProc): Update Tcl_VarTraceProcs so that
* generic/tclNamesp.c (Error*Read): they call Tcl_InterpDeleted()
* generic/tclTrace.c (Trace*Proc): for themselves, and do not rely
* generic/tclUtil.c (TclPrecTraceProc): on (frequently buggy) setting
of the TCL_INTERP_DESTROYED flag by the trace core.
* generic/tclVar.c: Update callers of TclCallVarTraces to not
pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that
public routines only pass documented flag values down to lower level
routines.
* generic/tclTrace.c (TclCallVarTraces): The setting of the
TCL_INTERP_DESTROYED flag is now done entirely within the
TclCallVarTraces routine, the only place it can be done right.
FossilOrigin-Name: 4fde67d5013eaf91210425a103fabdd2507b93fd
Diffstat (limited to 'generic/tclLink.c')
-rw-r--r-- | generic/tclLink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c index 8d3bc1a..0f33c03 100644 --- a/generic/tclLink.c +++ b/generic/tclLink.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclLink.c,v 1.21 2007/04/10 14:47:16 dkf Exp $ + * RCS: @(#) $Id: tclLink.c,v 1.22 2007/05/07 19:45:33 dgp Exp $ */ #include "tclInt.h" @@ -262,7 +262,7 @@ LinkTraceProc( */ if (flags & TCL_TRACE_UNSETS) { - if (flags & TCL_INTERP_DESTROYED) { + if (Tcl_InterpDeleted(interp)) { Tcl_DecrRefCount(linkPtr->varName); ckfree((char *) linkPtr); } else if (flags & TCL_TRACE_DESTROYED) { |