diff options
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r-- | src/guiTextInputMenu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp index 38985cfa0..2cb8cae62 100644 --- a/src/guiTextInputMenu.cpp +++ b/src/guiTextInputMenu.cpp @@ -172,7 +172,8 @@ bool GUITextInputMenu::OnEvent(const SEvent& event) case 257: acceptInput(); quitMenu(); - break; + // quitMenu deallocates menu + return true; } } if(event.GUIEvent.EventType==gui::EGET_EDITBOX_ENTER) @@ -182,7 +183,8 @@ bool GUITextInputMenu::OnEvent(const SEvent& event) case 256: acceptInput(); quitMenu(); - break; + // quitMenu deallocates menu + return true; } } } |