From 42f4ebab2f8d182d979317fb9001044b23ad218a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 12 Jan 2022 11:37:32 +0100 Subject: [PATCH] Renewing old code, as suggested by Albrecht. --- fluid/Fl_Widget_Type.cxx | 5 +---- 1 file changed, 1 insertion(+), 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_);