Fix crashes when wxWidgets tries to free stack allocated dialogs (#377)

This commit is contained in:
goeiecool9999 2022-10-16 09:02:33 +02:00 committed by GitHub
parent f0938e1a23
commit e88d20cbfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -763,7 +763,6 @@ void MainWindow::OpenSettings()
frame.ShowModal();
const bool paths_modified = frame.ShouldReloadGamelist();
const bool mlc_modified = frame.MLCModified();
frame.Destroy();
if (paths_modified)
m_game_list->ReloadGameEntries(false);
@ -1722,7 +1721,6 @@ void MainWindow::OnTimer(wxTimerEvent& event)
{
CemuUpdateWindow update_window(this);
update_window.ShowModal();
update_window.Destroy();
}
}
@ -1999,7 +1997,6 @@ void MainWindow::OnHelpUpdate(wxCommandEvent& event)
{
CemuUpdateWindow test(this);
test.ShowModal();
test.Destroy();
}
void MainWindow::OnHelpGettingStarted(wxCommandEvent& event)