From: Ilya Zhuravlev Date: Thu, 16 Jan 2014 12:54:50 +0000 (+0400) Subject: Fix another heap-use-after-free in pause menu. X-Git-Tag: 0.4.10~280 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7859e57f6c4bafe6d9213be905b16cc3e015ee07;p=oweals%2Fminetest.git Fix another heap-use-after-free in pause menu. --- diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp index d7a51488e..4d5070c9b 100644 --- a/src/guiPauseMenu.cpp +++ b/src/guiPauseMenu.cpp @@ -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();