mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: Properly Delete (Some) Widgets
This is not every memory leak, just the ones that were obvious.
This commit is contained in:
@ -226,6 +226,7 @@ void FilesystemWidget::ShowContextMenu(const QPoint&)
|
||||
auto* item = m_tree_model->itemFromIndex(selection->selectedIndexes()[0]);
|
||||
|
||||
QMenu* menu = new QMenu(this);
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
EntryType type = item->data(ENTRY_TYPE).value<EntryType>();
|
||||
|
||||
|
Reference in New Issue
Block a user