mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-28 16:11:38 +00:00
Qt/MainWindow: Fix segfault on exit while NetPlay is open
This commit is contained in:
parent
bfde5b931e
commit
ab6583b430
@ -256,6 +256,10 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters,
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
// Shut down NetPlay first to avoid race condition segfault
|
||||
Settings::Instance().ResetNetPlayClient();
|
||||
Settings::Instance().ResetNetPlayServer();
|
||||
|
||||
delete m_render_widget;
|
||||
delete m_netplay_dialog;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user