summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-06-19 21:14:19 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-10-15 18:34:14 +0100
commit74ea5d371cb8ba02b39dcd814d3fb4035c7927cf (patch)
tree2c86f393bebf1d17aac21b32f471ac641a87b60c
parentadd51b2929ab750b729a1953c2a447f67f973b26 (diff)
Free the memory allocated for ReturnData in FlushXEvents().
from-xming-patch15 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwin/winclipboardxevents.c b/hw/xwin/winclipboardxevents.c
index 194d2834d..100d409db 100644
--- a/hw/xwin/winclipboardxevents.c
+++ b/hw/xwin/winclipboardxevents.c
@@ -714,6 +714,8 @@ winClipboardFlushXEvents (HWND hwnd,
hGlobal = GlobalAlloc (GMEM_MOVEABLE, iConvertDataLen);
}
+ free (pszReturnData);
+
/* Check that global memory was allocated */
if (!hGlobal)
{