From 806e407193a188fbe99420d6f91ce3bb013da59f Mon Sep 17 00:00:00 2001 From: Kusanagi Kouichi Date: Thu, 4 Aug 2011 19:38:54 +0900 Subject: [PATCH] winex11.drv: Fix a memory leak. --- dlls/winex11.drv/clipboard.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c index 0899815e2a9..cda8f9e0b28 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(); /* -- 2.11.4.GIT