mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 15:21:41 +00:00
DolphinQt: Properly Delete (Some) Widgets
This is not every memory leak, just the ones that were obvious.
This commit is contained in:
parent
e69486d2cb
commit
0397339ab1
12 changed files with 25 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue