Kusanagi Kouichi : winex11.drv: Fix a memory leak.
Alexandre Julliard
julliard at winehq.org
Thu Aug 4 12:22:11 CDT 2011
Module: wine
Branch: master
Commit: 806e407193a188fbe99420d6f91ce3bb013da59f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=806e407193a188fbe99420d6f91ce3bb013da59f
Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date: Thu Aug 4 19:38:54 2011 +0900
winex11.drv: Fix a memory leak.
---
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();
/*
More information about the wine-cvs
mailing list