mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 23:30:15 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -713,6 +713,8 @@ winClipboardFlushXEvents (HWND hwnd,
|
|||
hGlobal = GlobalAlloc (GMEM_MOVEABLE, iConvertDataLen);
|
||||
}
|
||||
|
||||
free (pszReturnData);
|
||||
|
||||
/* Check that global memory was allocated */
|
||||
if (!hGlobal)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue