diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2009-02-03 15:54:31 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-02-12 12:07:13 +0000 |
commit | cb6315072ff23740bdc5fc2f95dd960601df5664 (patch) | |
tree | 288485db4b8e18ef80f4df23004ad9dd16b77aee | |
parent | d54d24dd5f25188b951b82b1c95eb9d36b5be970 (diff) |
Xming: Fix a memory leak in clipboard integration code
Free the memory allocated for ReturnData in FlushXEvents().
Copyright (C) Colin Harrison 2005-2008
http://www.straightrunning.com/XmingNotes/
http://sourceforge.net/projects/xming/
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/winclipboardxevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwin/winclipboardxevents.c b/hw/xwin/winclipboardxevents.c index 28a8cd238..95e86b1dc 100644 --- a/hw/xwin/winclipboardxevents.c +++ b/hw/xwin/winclipboardxevents.c @@ -713,6 +713,8 @@ winClipboardFlushXEvents (HWND hwnd, hGlobal = GlobalAlloc (GMEM_MOVEABLE, iConvertDataLen); } + free (pszReturnData); + /* Check that global memory was allocated */ if (!hGlobal) { |