Skip to content

Commit

Permalink
Better identify the output of TK_CHECK_ALLOCS results from tkText and…
Browse files Browse the repository at this point in the history
… tkTextDisp.
  • Loading branch information
fvogelnew1 committed Dec 7, 2024
1 parent a54d54a commit f400994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generic/tkText.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ AllocStatistic(void)
}

fprintf(stderr, "---------------------------------\n");
fprintf(stderr, "ALLOCATION: new destroy\n");
fprintf(stderr, "tkText ALLOCS: new destroy\n");
fprintf(stderr, "---------------------------------\n");
fprintf(stderr, "Shared: %8u - %8u\n", tkTextCountNewShared, tkTextCountDestroyShared);
fprintf(stderr, "Peer: %8u - %8u\n", tkTextCountNewPeer, tkTextCountDestroyPeer);
Expand Down Expand Up @@ -4605,7 +4605,7 @@ ProcessDestroyNotify(
textPtr->flags |= DESTROYED;

/*
* Call 'DestroyTest' to handle the deletion for us. The actual
* Call 'DestroyText' to handle the deletion for us. The actual
* textPtr may still exist after this, if there are some outstanding
* references. But we have flagged it as DESTROYED just above, so
* nothing will try to make use of it very extensively.
Expand Down
2 changes: 1 addition & 1 deletion generic/tkTextDisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ AllocStatistic(void)
}

fprintf(stderr, "--------------------------------\n");
fprintf(stderr, "ALLOCATION: new destroy\n");
fprintf(stderr, "tkTextDisp ALLOCS:new destroy\n");
fprintf(stderr, "--------------------------------\n");
fprintf(stderr, "DLine: %8u - %8u\n", tkTextCountNewDLine, tkTextCountDestroyDLine);
fprintf(stderr, "Chunk: %8u - %8u\n", tkTextCountNewChunk, tkTextCountDestroyChunk);
Expand Down

0 comments on commit f400994

Please sign in to comment.