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/CodeViewWidget.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/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
