summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2007-04-23 20:11:09 (GMT)
committerdgp <dgp@noemail.net>2007-04-23 20:11:09 (GMT)
commit2134a0e7016276f2b3a853cbce5d68eb6cce1f4f (patch)
tree849f1ad88b7b0ef3a02b8560cf2a09464b7f08fe /generic
parent1b9eb5f4d8fbbd3e07aae15f7a87cbb9d2a2ed17 (diff)
downloadtcl-2134a0e7016276f2b3a853cbce5d68eb6cce1f4f.zip
tcl-2134a0e7016276f2b3a853cbce5d68eb6cce1f4f.tar.gz
tcl-2134a0e7016276f2b3a853cbce5d68eb6cce1f4f.tar.bz2
* generic/tclVar.c (UnsetVarStruct): Make sure the
TCL_INTERP_DESTROYED flags gets passed to unset trace routines so they can respond appropriately. [Bug 1705778, leak #9] FossilOrigin-Name: ae1e9ecfa37fc72604a0cd2cd382791ff877bb4c
Diffstat (limited to 'generic')
-rw-r--r--generic/tclVar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 05c3b4e..b4fffb1 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.131 2007/04/23 00:50:10 msofer Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.132 2007/04/23 20:11:10 dgp Exp $
*/
#include "tclInt.h"
@@ -2117,7 +2117,7 @@ UnsetVarStruct(
|| ((arrayPtr != NULL) && (arrayPtr->tracePtr != NULL))) {
dummyVar.flags &= ~VAR_TRACE_ACTIVE;
TclCallVarTraces(iPtr, arrayPtr, &dummyVar, part1, part2,
- (flags & (TCL_GLOBAL_ONLY|TCL_NAMESPACE_ONLY))
+ (flags & (TCL_GLOBAL_ONLY|TCL_NAMESPACE_ONLY|TCL_INTERP_DESTROYED))
| TCL_TRACE_UNSETS, /* leaveErrMsg */ 0);
while (dummyVar.tracePtr != NULL) {
VarTrace *tracePtr = dummyVar.tracePtr;