From f4009948239859b0c172f1e8948ce059427f8efb Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 7 Dec 2024 11:17:16 +0000 Subject: [PATCH] Better identify the output of TK_CHECK_ALLOCS results from tkText and tkTextDisp. --- generic/tkText.c | 4 ++-- generic/tkTextDisp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/tkText.c b/generic/tkText.c index 709dd2d33..96f7bde06 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -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); @@ -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. diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 0a56353e8..ed3bdf302 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -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);