mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
winex11.drv: Fix memory leak in create_cursor (found by Smatch).
This commit is contained in:
parent
514b26d9e9
commit
d99882a384
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user