Renewing old code, as suggested by Albrecht.

This commit is contained in:
Matthias Melcher 2022-01-12 11:37:32 +01:00
parent b2498781de
commit 42f4ebab2f

View File

@ -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_);