From d133aeb04683c0276d59379e49efea8a232d79de Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 12 Oct 2023 17:23:20 +0200 Subject: [PATCH] GRAPHICS: MACGUI: Release allocated objects in MacText --- graphics/macgui/mactext.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index f95f7714345..a7e702deb94 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -195,6 +195,10 @@ struct MacTextLine { * @note If requested column is too big, returns last character in the line */ uint getChunkNum(int *col); + + ~MacTextLine() { + delete tableSurface; + } }; struct SelectedText {