From 427079767a6d218c569f00d97d83dc03a2f7f6c3 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 7 Dec 2024 11:18:17 +0000 Subject: [PATCH] Fix [a67252b384]: Memory leak when running the revised_text test suite. --- generic/tkTextDisp.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index ed3bdf302..30a1cb68b 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6389,15 +6389,8 @@ DisplayDLine( x = -chunkPtr->width; } - /* - * Refcount gymnastics here to prevent the resource from being released - * in case the displayProc destroys the widget. - */ - - textPtr->refCount += 1; chunkPtr->layoutProcs->displayProc(textPtr, chunkPtr, x, yBase, height, baseline, display, pixmap, screenY); - textPtr->refCount -= 1; if (TkTextReleaseIfDestroyed(textPtr)) { /*