diff options
author | Simon Howard | 2011-10-23 19:28:10 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-23 19:28:10 +0000 |
commit | cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a (patch) | |
tree | 50cb50da2a8ea58d869c9f6ae648090346bf6b1d | |
parent | dd52766c7be893a6a5db31bc396ccef8d758af45 (diff) | |
download | chocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.tar.gz chocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.tar.bz2 chocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.zip |
Don't save value when destructor is called.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2461
-rw-r--r-- | textscreen/txt_inputbox.c | 8 |
1 files changed, 0 insertions, 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); } |