mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 02:21:26 +02:00
DolphinQt/CheatsManager: Don't leak closed cheat search tabs.
This commit is contained in:
parent
48c4ebeee0
commit
7f2fed0f68
@ -127,7 +127,9 @@ void CheatsManager::OnNewSessionCreated(const Cheats::CheatSearchSessionBase& se
|
||||
|
||||
void CheatsManager::OnTabCloseRequested(int index)
|
||||
{
|
||||
m_tab_widget->removeTab(index);
|
||||
auto* w = m_tab_widget->widget(index);
|
||||
if (w)
|
||||
w->deleteLater();
|
||||
}
|
||||
|
||||
void CheatsManager::ConnectWidgets()
|
||||
|
Loading…
Reference in New Issue
Block a user