mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Fix another heap-use-after-free in pause menu.
This commit is contained in:
parent
2d16ebf57c
commit
7859e57f6c
@ -256,12 +256,12 @@ bool GUIPauseMenu::OnEvent(const SEvent& event)
|
|||||||
// ALWAYS return immediately after quitMenu()
|
// ALWAYS return immediately after quitMenu()
|
||||||
return true;
|
return true;
|
||||||
case 261:
|
case 261:
|
||||||
quitMenu();
|
|
||||||
m_gamecallback->changePassword();
|
m_gamecallback->changePassword();
|
||||||
|
quitMenu();
|
||||||
return true;
|
return true;
|
||||||
case 262:
|
case 262:
|
||||||
quitMenu();
|
|
||||||
m_gamecallback->changeVolume();
|
m_gamecallback->changeVolume();
|
||||||
|
quitMenu();
|
||||||
return true;
|
return true;
|
||||||
case 260: // disconnect
|
case 260: // disconnect
|
||||||
m_gamecallback->disconnect();
|
m_gamecallback->disconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user