mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix segfault on quitting with open node formspec (#8608)
This commit is contained in:
parent
39c54e13c3
commit
4e3c1916f7
1 changed files with 4 additions and 5 deletions
|
@ -306,11 +306,10 @@ void GameUI::toggleProfiler()
|
|||
|
||||
void GameUI::deleteFormspec()
|
||||
{
|
||||
if (m_formspec)
|
||||
m_formspec->quitMenu();
|
||||
|
||||
delete m_formspec;
|
||||
if (m_formspec) {
|
||||
m_formspec->drop();
|
||||
m_formspec = nullptr;
|
||||
}
|
||||
|
||||
m_formname.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue