From d99882a3843f55dabc30c7d390a310cd2a89b2b7 Mon Sep 17 00:00:00 2001 From: Lionel Debroux Date: Fri, 31 Aug 2007 08:16:36 +0200 Subject: [PATCH] winex11.drv: Fix memory leak in create_cursor (found by Smatch). --- dlls/winex11.drv/mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 86dad89e47..febd1e3fde 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -763,6 +763,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr ) pixmapBits = XCreateBitmapFromData( display, root_window, (char *)pXorBits, xmax, ymax ); if (!pixmapBits) { + HeapFree( GetProcessHeap(), 0, bitMask32 ); XFreePixmap( display, pixmapAll ); XFreeGC( display, gc ); image->data = NULL;