From d47b431750f545a2066e6d4a07e69b5088a7396f Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 3 May 2016 14:28:45 +0000 Subject: 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 --- FL/Fl.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL') 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 not at all. This -- cgit v1.2.3