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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=7859e57f6c4bafe6d9213be905b16cc3e015ee07;p=zefram%2Fminetest%2Fminetest_engine.git Fix another heap-use-after-free in pause menu. --- diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp index d7a51488..4d5070c9 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();