diff options
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r-- | src/Fl_Widget.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index d3138a5..b20d8df 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.cxx 4609 2005-10-30 17:42:21Z mike $" +// "$Id: Fl_Widget.cxx 5190 2006-06-09 16:16:34Z mike $" // // Base widget class for the Fast Light Tool Kit (FLTK). // @@ -133,6 +133,7 @@ extern void fl_throw_focus(Fl_Widget*); // in Fl_x.cxx // However, it is only legal to destroy a "root" such as an Fl_Window, // and automatic destructors may be called. Fl_Widget::~Fl_Widget() { + Fl::clear_widget_pointer(this); if (flags() & COPIED_LABEL) free((void *)(label_.value)); parent_ = 0; // Don't throw focus to a parent widget. fl_throw_focus(this); @@ -279,5 +280,5 @@ Fl_Widget::copy_label(const char *a) { // -// End of "$Id: Fl_Widget.cxx 4609 2005-10-30 17:42:21Z mike $". +// End of "$Id: Fl_Widget.cxx 5190 2006-06-09 16:16:34Z mike $". // |