From: Colin Harrison <colin.harri...@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.tur...@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

_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to