Renewing old code, as suggested by Albrecht.
This commit is contained in:
parent
b2498781de
commit
42f4ebab2f
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user