diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-29 00:06:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-29 00:06:42 (GMT) |
commit | 7523143f3e7c3a026b3addb99bfeb70dd9adaff5 (patch) | |
tree | c00473569b5930ba5e86eaaddd2546cfbc8f5010 /generic | |
parent | ac61536f6a47bcbaa93399b81a184f647d62a259 (diff) | |
download | tcl-7523143f3e7c3a026b3addb99bfeb70dd9adaff5.zip tcl-7523143f3e7c3a026b3addb99bfeb70dd9adaff5.tar.gz tcl-7523143f3e7c3a026b3addb99bfeb70dd9adaff5.tar.bz2 |
For Tcl9, do a real Tcl_DecrRefCountbug_3598580
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclListObj.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclListObj.c b/generic/tclListObj.c index 97e7152..5b73a155 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -907,7 +907,11 @@ Tcl_ListObjReplace( listRepPtr = AttemptNewList(interp, newMax, NULL); if (listRepPtr == NULL) { for (i = 0; i < objc; i++) { +#if TCL_MAJOR_VERSION > 8 + Tcl_DecrRefCount(objv[i]); +#else objv[i]->refCount--; +#endif } return TCL_ERROR; } |