diff options
author | SmallJoker <mk939@ymail.com> | 2019-06-21 21:00:30 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-06-21 21:00:30 +0200 |
commit | 4e3c1916f731058a137ec1f9eecf2b7eff4d8fcc (patch) | |
tree | 8109c53e72fdc5de58270f16e5b062aca18ed5da /src/client | |
parent | 39c54e13c3ee3558f330f4d5716d8073b48de11a (diff) | |
download | minetest-4e3c1916f731058a137ec1f9eecf2b7eff4d8fcc.tar.gz minetest-4e3c1916f731058a137ec1f9eecf2b7eff4d8fcc.tar.bz2 minetest-4e3c1916f731058a137ec1f9eecf2b7eff4d8fcc.zip |
Fix segfault on quitting with open node formspec (#8608)
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/gameui.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index f3c3fefb6..33f7d1a8a 100644 --- a/src/client/gameui.cpp +++ b/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(); } |