winex11.drv: Fix memory leak in create_cursor (found by Smatch).

This commit is contained in:
Lionel Debroux 2007-08-31 08:16:36 +02:00 committed by Alexandre Julliard
parent 514b26d9e9
commit d99882a384

View File

@ -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;