mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-24 10:05:28 +01:00
Fix segfault on quitting with open node formspec (#8608)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user