Lionel Debroux : winex11.drv: Fix memory leak in create_cursor (
found by Smatch).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 31 07:22:20 CDT 2007
Module: wine
Branch: master
Commit: d99882a3843f55dabc30c7d390a310cd2a89b2b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d99882a3843f55dabc30c7d390a310cd2a89b2b7
Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date: Fri Aug 31 08:16:36 2007 +0200
winex11.drv: Fix memory leak in create_cursor (found by Smatch).
---
dlls/winex11.drv/mouse.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 86dad89..febd1e3 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;
More information about the wine-cvs
mailing list