From cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 23 Oct 2011 19:28:10 +0000 Subject: Don't save value when destructor is called. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2461 --- textscreen/txt_inputbox.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c index 7056c497..2ba08ac6 100644 --- a/textscreen/txt_inputbox.c +++ b/textscreen/txt_inputbox.c @@ -161,14 +161,6 @@ static void TXT_InputBoxDestructor(TXT_UNCAST_ARG(inputbox)) { TXT_CAST_ARG(txt_inputbox_t, inputbox); - // If we're still editing when the widget is destroyed, save the - // value first. - - if (inputbox->editing) - { - FinishEditing(inputbox); - } - free(inputbox->buffer); } -- cgit v1.2.3