diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-30 10:58:16 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-30 11:17:28 -0700 |
| commit | 0397339ab1fbdf6309ab14dbf48946853c608522 (patch) | |
| tree | 0f116933da42d99f743817f75110b037082619b4 /Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | |
| parent | e69486d2cb4e3e01dd622d760350b26d6cbd59f5 (diff) | |
DolphinQt: Properly Delete (Some) Widgets
This is not every memory leak, just the ones that were obvious.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 35c178acc6..a8ac6921be 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -873,6 +873,7 @@ void MemoryViewWidget::OnContextMenu(const QPoint& pos) ->IsValidAddress(Core::CPUThreadGuard{m_system}, addr); auto* menu = new QMenu(this); + menu->setAttribute(Qt::WA_DeleteOnClose, true); menu->addAction(tr("Copy Address"), this, [this, addr] { OnCopyAddress(addr); }); |
