Browse Source

Renewing old code, as suggested by Albrecht.

pull/374/head
Matthias Melcher 3 years ago
parent
commit
42f4ebab2f
  1. 5
      fluid/Fl_Widget_Type.cxx

5
fluid/Fl_Widget_Type.cxx

@ -213,13 +213,10 @@ Fl_Widget_Type::Fl_Widget_Type() {
Fl_Widget_Type::~Fl_Widget_Type() { Fl_Widget_Type::~Fl_Widget_Type() {
if (o) { if (o) {
o->hide();
Fl_Window *win = o->window(); Fl_Window *win = o->window();
delete o;
if (win) if (win)
win->redraw(); win->redraw();
if (o->parent())
((Fl_Group*)o->parent())->remove(*o);
delete o;
} }
if (subclass_) free((void*)subclass_); if (subclass_) free((void*)subclass_);
if (tooltip_) free((void*)tooltip_); if (tooltip_) free((void*)tooltip_);

Loading…
Cancel
Save