diff options
author | corvid <corvid@lavabit.com> | 2011-05-10 23:22:21 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-05-10 23:22:21 +0000 |
commit | 1f7c40adbfddff181209abc7e55c0ae3b3964af3 (patch) | |
tree | a497af58de47430a97033a05963be7e79d62b1c5 | |
parent | 9a5cfc077d9f70be42d3202f1ff5f9eec0d76f16 (diff) |
more of the same
-rw-r--r-- | dw/fltkui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index b70220a2..a7da10d9 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -448,9 +448,9 @@ FltkEntryResource::FltkEntryResource (FltkPlatform *platform, int maxLength, 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 @@ const char *FltkEntryResource::getText () void FltkEntryResource::setText (const char *text) { if (initText) - delete initText; + free((char *)initText); initText = strdup (text); ((Fl_Input*)widget)->value (initText); |