summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyriet <kyriet.sebastian@gmail.com>2023-12-10 19:19:39 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-10 22:04:08 +0100
commit5e3681c22a2073a63271d554ea99105264800659 (patch)
treeab596959d619fd738a06f00d43f048a9eacb069d
parent861bc339c064a65ac3b207dd1b318570d17310f3 (diff)
Documentation: Improve doc comment for ~Fl_Group
-rw-r--r--src/Fl_Group.cxx4
1 files changed, 2 insertions, 2 deletions
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)