summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Group.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index aefead997..2ec83d493 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -452,6 +452,8 @@ void Fl_Group::clear() {
widgets' destructors would be called twice!
*/
Fl_Group::~Fl_Group() {
+ if (current_ == this)
+ end();
clear();
}