From daba2a1ffd899f480fbf0f0b771ad840efb8f1a3 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 25 Jan 2026 14:40:28 -0600 Subject: [PATCH] feat(ui): delete title region in CSimpleFrame dtor --- src/ui/simple/CSimpleFrame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/simple/CSimpleFrame.cpp b/src/ui/simple/CSimpleFrame.cpp index 7630899..9cf321d 100644 --- a/src/ui/simple/CSimpleFrame.cpp +++ b/src/ui/simple/CSimpleFrame.cpp @@ -64,13 +64,15 @@ CSimpleFrame::CSimpleFrame(CSimpleFrame* parent) : CScriptRegion() { } CSimpleFrame::~CSimpleFrame() { - // TODO - this->m_intAC = 3; this->m_top->UnregisterFrame(this); this->m_top = nullptr; + if (this->m_titleRegion) { + delete this->m_titleRegion; + } + // TODO }