summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-05-03 14:28:45 +0000
committerManolo Gouy <Manolo>2016-05-03 14:28:45 +0000
commitd47b431750f545a2066e6d4a07e69b5088a7396f (patch)
tree60638712839992fc346a7d6c28b2b2b69cb7173d /FL
parent86a7bbe93a5743d548af8c92fbbbf0a7518d0578 (diff)
Fix potential memory leak under X11 when pasted image is not accepted by the receiving app.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 0e963e501..b14d57abe 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -828,7 +828,7 @@ int main() {
static int event_length() {return e_length;}
/** During an FL_PASTE event of non-textual data, returns a pointer to the pasted data.
- The returned data is an Fl_Image * when the result of Fl::event_clipboard_type() is Fl::clipboard_image.
+ The returned data is an Fl_RGB_Image * when the result of Fl::event_clipboard_type() is Fl::clipboard_image.
*/
static void *event_clipboard() { return e_clipboard_data; }
/** Returns the type of the pasted data during an FL_PASTE event.
@@ -900,7 +900,7 @@ int main() {
and if \p type is Fl::clipboard_plain_text, the text data from the specified \p source are in Fl::event_text()
with UTF-8 encoding, and the number of bytes in Fl::event_length();
if \p type is Fl::clipboard_image, Fl::event_clipboard() returns a pointer to the
- image data, as an Fl_Image *.
+ image data, as an Fl_RGB_Image *.
The receiver
should be prepared to be called \e directly by this, or for
it to happen \e later, or possibly <i>not at all</i>. This