1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 23:58:48 -05:00

Fix another heap-use-after-free in pause menu.

This commit is contained in:
Ilya Zhuravlev 2014-01-16 16:54:50 +04:00 committed by kwolekr
parent 2d16ebf57c
commit 7859e57f6c

View File

@ -256,12 +256,12 @@ bool GUIPauseMenu::OnEvent(const SEvent& event)
// ALWAYS return immediately after quitMenu()
return true;
case 261:
quitMenu();
m_gamecallback->changePassword();
quitMenu();
return true;
case 262:
quitMenu();
m_gamecallback->changeVolume();
quitMenu();
return true;
case 260: // disconnect
m_gamecallback->disconnect();