|
|
commit 42f4ebab2f8d182d979317fb9001044b23ad218a
Author: Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Jan 12 11:37:32 2022 +0100
Commit: Matthias Melcher <github@matthiasm.com>
CommitDate: Wed Jan 12 11:38:14 2022 +0100
Renewing old code, as suggested by Albrecht.
fluid/Fl_Widget_Type.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git fluid/Fl_Widget_Type.cxx fluid/Fl_Widget_Type.cxx
index b35355f..918ca70 100644
--- fluid/Fl_Widget_Type.cxx
+++ fluid/Fl_Widget_Type.cxx
@@ -213,13 +213,10 @@ Fl_Widget_Type::Fl_Widget_Type() {
Fl_Widget_Type::~Fl_Widget_Type() {
if (o) {
- o->hide();
Fl_Window *win = o->window();
+ delete o;
if (win)
win->redraw();
- if (o->parent())
- ((Fl_Group*)o->parent())->remove(*o);
- delete o;
}
if (subclass_) free((void*)subclass_);
if (tooltip_) free((void*)tooltip_);
[ Direct Link to Message ] | |
|
| |