ref: cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a
parent: dd52766c7be893a6a5db31bc396ccef8d758af45
author: Simon Howard <fraggle@gmail.com>
date: Sun Oct 23 15:28:10 EDT 2011
Don't save value when destructor is called. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2461
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -161,14 +161,6 @@
{
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);
}