summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-04-23 20:11:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-04-23 20:11:09 (GMT)
commit212710db2267a25e7ddef3a314ea551e835430b6 (patch)
tree849f1ad88b7b0ef3a02b8560cf2a09464b7f08fe /generic/tclVar.c
parent0346db3d28f76c5cd9878c41fe7401b3eddc9c68 (diff)
downloadtcl-212710db2267a25e7ddef3a314ea551e835430b6.zip
tcl-212710db2267a25e7ddef3a314ea551e835430b6.tar.gz
tcl-212710db2267a25e7ddef3a314ea551e835430b6.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]
Diffstat (limited to 'generic/tclVar.c')
-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;