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/WatchWidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp') diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 788feb7983..aba66940e6 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -327,6 +327,7 @@ void WatchWidget::OnSave() void WatchWidget::ShowContextMenu() { QMenu* menu = new QMenu(this); + menu->setAttribute(Qt::WA_DeleteOnClose, true); if (!m_table->selectedItems().empty()) { -- cgit v1.2.3