Commit d99882a3 authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

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

parent 514b26d9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment