DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2412
Version: 2.0-current


fltk-2.0.x-r7680 and older, Linux (Ubuntu 10) and WinXP
In Widget.cxx
98:  if (flags_&COPIED_LABEL) delete[] const_cast<char*>( label_ );
There is a case where somebody else has already freed the copied label (I
verified that it isn't the widget).
I'm using a modified test/arc.cxx (where the labels are copied instead of
set by the constructor) and run it, kill it (by clicking X) and then call
"delete window", glibc will blow, complaining about a double free. The
trace back is Widget destructor called by ValueSlider called by
Group::clear.
I commented out line 98 and no crash.


Link: http://www.fltk.org/str.php?L2412
Version: 2.0-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to