Skip to content
Permalink
Browse files

Fix segfault on quitting with open node formspec (#8608)

  • Loading branch information...
SmallJoker committed Jun 21, 2019
1 parent 39c54e1 commit 4e3c1916f731058a137ec1f9eecf2b7eff4d8fcc
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/client/gameui.cpp
@@ -306,11 +306,10 @@ void GameUI::toggleProfiler()

void GameUI::deleteFormspec()
{
if (m_formspec)
m_formspec->quitMenu();

delete m_formspec;
m_formspec = nullptr;
if (m_formspec) {
m_formspec->drop();
m_formspec = nullptr;
}

m_formname.clear();
}

0 comments on commit 4e3c191

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