summaryrefslogtreecommitdiffstats
path: root/generic/tclOOMethod.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-11-14 19:22:46 (GMT)
committersebres <sebres@users.sourceforge.net>2019-11-14 19:22:46 (GMT)
commit08263bbcbd6376f3df6fe6ecdecab40bf44634dc (patch)
tree25ed06676e82d416b1f808f46f2c497f8ce5109d /generic/tclOOMethod.c
parent587439fdee10e13add6010aeefb25d05677a5d52 (diff)
downloadtcl-08263bbcbd6376f3df6fe6ecdecab40bf44634dc.zip
tcl-08263bbcbd6376f3df6fe6ecdecab40bf44634dc.tar.gz
tcl-08263bbcbd6376f3df6fe6ecdecab40bf44634dc.tar.bz2
restore verification for deleted interp
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r--generic/tclOOMethod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c
index fbd23c0..0c5f4bb 100644
--- a/generic/tclOOMethod.c
+++ b/generic/tclOOMethod.c
@@ -675,7 +675,9 @@ InvokeProcedureMethod(
* the next thing in the chain.
*/
- if (!((CallContext *)context)->oPtr->namespacePtr) {
+ if (!((CallContext *)context)->oPtr->namespacePtr ||
+ Tcl_InterpDeleted(interp)
+ ) {
return TclNRObjectContextInvokeNext(interp, context, objc, objv,
Tcl_ObjectContextSkippedArgs(context));
}