diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-05-02 17:30:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 17:30:49 +0200 |
| commit | 5817be7bd3ac1b3f68a24410dc416d69ae2ff20f (patch) | |
| tree | 4f9586afbdd910689cb883422fbbdf3289989ca2 /Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | |
| parent | 967280f140f39283e9e6997ffa6426329d94f611 (diff) | |
| parent | 0397339ab1fbdf6309ab14dbf48946853c608522 (diff) | |
Merge pull request #12747 from mitaclaw/qt-memory-leaks
DolphinQt: Properly Delete (Some) Widgets
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); }); |
