summaryrefslogtreecommitdiff
path: root/hw/xwin/winclipboardxevents.c
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2009-02-03 15:54:31 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-02-12 12:07:13 +0000
commitcb6315072ff23740bdc5fc2f95dd960601df5664 (patch)
tree288485db4b8e18ef80f4df23004ad9dd16b77aee /hw/xwin/winclipboardxevents.c
parentd54d24dd5f25188b951b82b1c95eb9d36b5be970 (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>
Diffstat (limited to 'hw/xwin/winclipboardxevents.c')
-rw-r--r--hw/xwin/winclipboardxevents.c2
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)
{