From 5e3681c22a2073a63271d554ea99105264800659 Mon Sep 17 00:00:00 2001 From: Kyriet Date: Sun, 10 Dec 2023 19:19:39 +0100 Subject: Documentation: Improve doc comment for ~Fl_Group --- src/Fl_Group.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index 4200439b3..c9240fee0 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -438,8 +438,8 @@ void Fl_Group::clear() { If you add static or automatic (local) variables to an Fl_Group, then it is your responsibility to remove (or delete) all such static or automatic - child widgets \e \b before destroying the group - otherwise the child - widgets' destructors would be called twice! + child widgets \e \b before destroying the group - otherwise the group will + attempt to call delete operator on them leading to undefined behavior! */ Fl_Group::~Fl_Group() { if (current_ == this) -- cgit v1.2.3