summaryrefslogtreecommitdiffstats
path: root/generic/tclTimer.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 14:12:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 14:12:55 (GMT)
commitbe275081a1ef4cf0490a07d2e253ca901d932fe8 (patch)
tree6bd1b9d196a5924bc9e00578719d36ef22f2eafd /generic/tclTimer.c
parent0a36b1187dcef39b41d28a5ce319aa7c54f56f66 (diff)
parent733b7a43a45ee6be75ccd99172f66b35b69841c5 (diff)
downloadtcl-be275081a1ef4cf0490a07d2e253ca901d932fe8.zip
tcl-be275081a1ef4cf0490a07d2e253ca901d932fe8.tar.gz
tcl-be275081a1ef4cf0490a07d2e253ca901d932fe8.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclTimer.c')
-rw-r--r--generic/tclTimer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c
index 8118272..133c44e 100644
--- a/generic/tclTimer.c
+++ b/generic/tclTimer.c
@@ -942,8 +942,9 @@ Tcl_AfterObjCmd(
break;
case AFTER_INFO:
if (objc == 2) {
- Tcl_Obj *resultObj = Tcl_NewObj();
+ Tcl_Obj *resultObj;
+ TclNewObj(resultObj);
for (afterPtr = assocPtr->firstAfterPtr; afterPtr != NULL;
afterPtr = afterPtr->nextPtr) {
if (assocPtr->interp == interp) {
@@ -967,8 +968,9 @@ Tcl_AfterObjCmd(
Tcl_SetErrorCode(interp, "TCL","LOOKUP","EVENT", eventStr, NULL);
return TCL_ERROR;
} else {
- Tcl_Obj *resultListPtr = Tcl_NewObj();
+ Tcl_Obj *resultListPtr;
+ TclNewObj(resultListPtr);
Tcl_ListObjAppendElement(interp, resultListPtr,
afterPtr->commandPtr);
Tcl_ListObjAppendElement(interp, resultListPtr, Tcl_NewStringObj(