changeset 2006:2a952b378cdc

more of the same
author corvid <corvid@lavabit.com>
date Tue, 10 May 2011 23:22:21 +0000
parents b519799e360d
children 0da9d72218ee
files dw/fltkui.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkui.cc	Tue May 10 21:07:30 2011 +0000
+++ b/dw/fltkui.cc	Tue May 10 23:22:21 2011 +0000
@@ -448,9 +448,9 @@
 FltkEntryResource::~FltkEntryResource ()
 {
    if (initText)
-      delete initText;
+      free((char *)initText);
    if (label)
-      free((char *)label);
+      free(label);
 }
 
 Fl_Widget *FltkEntryResource::createNewWidget (core::Allocation
@@ -533,7 +533,7 @@
 void FltkEntryResource::setText (const char *text)
 {
    if (initText)
-      delete initText;
+      free((char *)initText);
    initText = strdup (text);
 
    ((Fl_Input*)widget)->value (initText);