winex11.drv: Fix a memory leak.
Kusanagi Kouichi
slash at ac.auone-net.jp
Thu Aug 4 05:38:54 CDT 2011
Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
---
dlls/winex11.drv/clipboard.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index 0899815..cda8f9e 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -2970,8 +2970,13 @@ static Atom X11DRV_SelectionRequest_MULTIPLE( HWND hWnd, XSelectionRequestEvent
}
else
{
- TRACE("\tType %s,Format %d,nItems %ld, Remain %ld\n",
- XGetAtomName(display, atype), aformat, cTargetPropList, remain);
+ if (TRACE_ON(clipboard))
+ {
+ char * const typeName = XGetAtomName(display, atype);
+ TRACE("\tType %s,Format %d,nItems %ld, Remain %ld\n",
+ typeName, aformat, cTargetPropList, remain);
+ XFree(typeName);
+ }
wine_tsx11_unlock();
/*
--
1.7.5.4
More information about the wine-patches
mailing list