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>
This commit is contained in:
parent
d54d24dd5f
commit
cb6315072f
|
@ -713,6 +713,8 @@ winClipboardFlushXEvents (HWND hwnd,
|
|||
hGlobal = GlobalAlloc (GMEM_MOVEABLE, iConvertDataLen);
|
||||
}
|
||||
|
||||
free (pszReturnData);
|
||||
|
||||
/* Check that global memory was allocated */
|
||||
if (!hGlobal)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user