diff options
author | dgp <dgp@noemail.net> | 2008-08-06 21:23:13 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-08-06 21:23:13 (GMT) |
commit | a0d3b38168b083628c38a9f1c6c91ac0431bfe0e (patch) | |
tree | eefbacdbe1583148a2d4d277d7a3e547aab3a2e8 /generic/tclOO.c | |
parent | 5cd6cbef13cc29b1aa20ddcb052ca0294628692d (diff) | |
download | tcl-a0d3b38168b083628c38a9f1c6c91ac0431bfe0e.zip tcl-a0d3b38168b083628c38a9f1c6c91ac0431bfe0e.tar.gz tcl-a0d3b38168b083628c38a9f1c6c91ac0431bfe0e.tar.bz2 |
* generic/tclOO.c: Revised TclOO's check for an interp
being deleted during handling of object command deletion. The
old code was relying on documented features of command delete
traces that do not in fact work. [Bug 2039178].
* tests/oo.test (oo-26.*): Added tests that demonstrate
failure of TclOO to check for various kinds of invalid bytecode
during method dispatch. [Bug 2037727].
FossilOrigin-Name: dc2c6d9a11f5bcabee1e0acb8aecc5fd2af4de15
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r-- | generic/tclOO.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c index 6f078e4..4db39c3 100644 --- a/generic/tclOO.c +++ b/generic/tclOO.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOO.c,v 1.13 2008/07/18 23:29:44 msofer Exp $ + * RCS: @(#) $Id: tclOO.c,v 1.14 2008/08/06 21:23:14 dgp Exp $ */ #ifdef HAVE_CONFIG_H @@ -562,7 +562,7 @@ ObjectRenamedTrace( AddRef(oPtr); oPtr->flags |= OBJECT_DELETED; - if (!(flags & TCL_INTERP_DESTROYED)) { + if (!Tcl_InterpDeleted(interp)) { CallContext *contextPtr = TclOOGetCallContext(oPtr, NULL, DESTRUCTOR); if (contextPtr != NULL) { |