diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-01-12 11:37:32 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2022-01-12 11:38:14 +0100 |
| commit | 42f4ebab2f8d182d979317fb9001044b23ad218a (patch) | |
| tree | 6a87b7aeb4562afccfd5341ae9670883f8ef959c | |
| parent | b2498781dee44b23632f79ab97f219c86981d40a (diff) | |
Renewing old code, as suggested by Albrecht.
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index b35355f4e..918ca70ab 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/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_); |
