diff options
author | dkf <dkf@noemail.net> | 2008-10-13 21:10:43 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2008-10-13 21:10:43 (GMT) |
commit | 0d5f4042b241a5ecde264c25b4e5e08ff78f727a (patch) | |
tree | 755c23b39dd456b534322dcdeed11d3831c9076a /generic/tclOOInfo.c | |
parent | 160fddcd1e254c4b017d9361cf77942c70a38d8f (diff) | |
download | tcl-0d5f4042b241a5ecde264c25b4e5e08ff78f727a.zip tcl-0d5f4042b241a5ecde264c25b4e5e08ff78f727a.tar.gz tcl-0d5f4042b241a5ecde264c25b4e5e08ff78f727a.tar.bz2 |
Handle error case [info class destructor].
FossilOrigin-Name: c12e6d7da690a9893a097a1addcf7ba5313ee7ea
Diffstat (limited to 'generic/tclOOInfo.c')
-rw-r--r-- | generic/tclOOInfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclOOInfo.c b/generic/tclOOInfo.c index ee19373..d994e94 100644 --- a/generic/tclOOInfo.c +++ b/generic/tclOOInfo.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOOInfo.c,v 1.8 2008/10/04 12:00:25 dkf Exp $ + * RCS: @(#) $Id: tclOOInfo.c,v 1.9 2008/10/13 21:10:43 dkf Exp $ */ #ifdef HAVE_CONFIG_H @@ -886,6 +886,10 @@ InfoClassDestrCmd( return TCL_ERROR; } clsPtr = GetClassFromObj(interp, objv[1]); + if (clsPtr == NULL) { + return TCL_ERROR; + } + if (clsPtr->destructorPtr == NULL) { return TCL_OK; } |