[PATCH 10/12] Xming: Fix a memory leak in clipboard integration code
Jon TURNEY
jon.turney at dronecode.org.uk
Wed Feb 4 05:11:32 PST 2009
From: Colin Harrison <colin.harrison at virgin.net>
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 at dronecode.org.uk>
---
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 28a8cd2..95e86b1 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)
{
--
1.6.0.4
More information about the xorg
mailing list