From 7859e57f6c4bafe6d9213be905b16cc3e015ee07 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 16 Jan 2014 16:54:50 +0400 Subject: [PATCH] Fix another heap-use-after-free in pause menu. --- src/guiPauseMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.25.1