Skip to content
Permalink
Browse files

Qt/MainWindow: Fix segfault on exit while NetPlay is open

  • Loading branch information...
Techjar committed Apr 5, 2019
1 parent bfde5b9 commit ab6583b4304275968e9b807738b5bcf55647e675
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/Core/DolphinQt/MainWindow.cpp
@@ -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;

0 comments on commit ab6583b

Please sign in to comment.
You can’t perform that action at this time.