Skip to content

Commit

Permalink
Fix [a67252b384]: Memory leak when running the revised_text test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvogelnew1 committed Dec 7, 2024
1 parent f400994 commit 4270797
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions generic/tkTextDisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
/*
Expand Down

0 comments on commit 4270797

Please sign in to comment.