From 0397339ab1fbdf6309ab14dbf48946853c608522 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:58:16 -0700 Subject: DolphinQt: Properly Delete (Some) Widgets This is not every memory leak, just the ones that were obvious. --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp') diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index e33fbde2fa..51f2814d9b 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -558,6 +558,7 @@ void CodeViewWidget::ReplaceAddress(u32 address, ReplaceWith replace) void CodeViewWidget::OnContextMenu() { QMenu* menu = new QMenu(this); + menu->setAttribute(Qt::WA_DeleteOnClose, true); const bool running = Core::GetState(m_system) != Core::State::Uninitialized; const bool paused = Core::GetState(m_system) == Core::State::Paused; -- cgit v1.2.3