From e88d20cbfbada6b1d144c4944f080f70299c1506 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Sun, 16 Oct 2022 09:02:33 +0200 Subject: [PATCH] Fix crashes when wxWidgets tries to free stack allocated dialogs (#377) --- src/gui/MainWindow.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 5ebfe09d..3291f3bb 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -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)