diff options
| author | Manolo Gouy <Manolo> | 2016-05-03 14:28:45 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-05-03 14:28:45 +0000 |
| commit | d47b431750f545a2066e6d4a07e69b5088a7396f (patch) | |
| tree | 60638712839992fc346a7d6c28b2b2b69cb7173d /FL | |
| parent | 86a7bbe93a5743d548af8c92fbbbf0a7518d0578 (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.H | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
