diff options
author | dgp <dgp@noemail.net> | 2008-02-29 19:59:59 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-02-29 19:59:59 (GMT) |
commit | e82108218c5be8767b2945abef25d55d25e17cda (patch) | |
tree | 8866755e4fddda1f41d89fd24646567b0cdebf3d /generic/tclEvent.c | |
parent | 8eaa5b6b2c5420e0d63439c47b3142c8b82ab95b (diff) | |
download | tcl-e82108218c5be8767b2945abef25d55d25e17cda.zip tcl-e82108218c5be8767b2945abef25d55d25e17cda.tar.gz tcl-e82108218c5be8767b2945abef25d55d25e17cda.tar.bz2 |
* generic/tclBasic.c (Tcl_AppendObjToErrorInfo): Revised the
refcount management of Tcl_AppendObjToErrorInfo to become that of
a conventional Consumer routine. This preserves the ease of use
for the overwhelming common callers who pass in a 0-count value,
but makes the proper call with a non-0-count value less surprising.
* generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Revised the
one caller within Tcl itself which passes a non-0-count value to
Tcl_AppendObjToErrorInfo().
FossilOrigin-Name: 9bd1c3e045249ace58f2fe971c0d6d50059e13eb
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r-- | generic/tclEvent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c index dcce176..4193ade 100644 --- a/generic/tclEvent.c +++ b/generic/tclEvent.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclEvent.c,v 1.78 2007/12/13 15:23:16 dgp Exp $ + * RCS: @(#) $Id: tclEvent.c,v 1.79 2008/02/29 20:00:00 dgp Exp $ */ #include "tclInt.h" @@ -376,7 +376,6 @@ TclDefaultBgErrorHandlerObjCmd( Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr); Tcl_DecrRefCount(keyPtr); if (valuePtr) { - Tcl_IncrRefCount(valuePtr); Tcl_AppendObjToErrorInfo(interp, valuePtr); } |