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

[STR New]

Link: http://www.fltk.org/str.php?L2133
Version: 1.3-current


Pasting text to Fl_Input still does not work on Mac OS X with 1.3-r6643.
Symptom:
copy text from Xcode,
paste it twice to an Fl_Input, program crashes at the second paste.

The error is in function Fl::paste of file Fl_mac.cxx
where variable flavorType is returned by function CFArrayGetValueAtIndex,
and so follows the "Get rule" (in Mac OS X parlance).
Two statements attempt to do CFRelease on this variable. These statements
should be removed because the Get rule forbids CFRelease calls.
These statements are:
        if (flavorType) CFRelease(flavorType);
        if (flavorType) {CFRelease(flavorType); flavorType = NULL;}
at lines 2612 and 2615 of file Fl_mac.cxx

I am very sorry Fabien but STR2121 is still around. :=)


Link: http://www.fltk.org/str.php?L2133
Version: 1.3-current

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

Reply via email to