Skip to content
Permalink
Browse files
Merge pull request #7960 from Techjar/netplay-fix-segfault-on-exit
Qt/MainWindow: Fix segfault on exit while NetPlay is open
  • Loading branch information
JMC47 committed Apr 5, 2019
2 parents e44433c + ab6583b commit a7ee00a
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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 a7ee00a

Please sign in to comment.