mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
winex11.drv: Fix an uninitialized variable (clang).
dst_bits structure is valid only if copy_image_bits() succeeded. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c851ecca2b
commit
827f97c1ab
@ -1436,10 +1436,10 @@ static DWORD put_pixmap_image( Pixmap pixmap, const XVisualInfo *vis,
|
||||
XPutImage( gdi_display, pixmap, gc, image, 0, 0, 0, 0, coords.width, coords.height );
|
||||
XFreeGC( gdi_display, gc );
|
||||
image->data = NULL;
|
||||
if (dst_bits.free) dst_bits.free( &dst_bits );
|
||||
}
|
||||
|
||||
XDestroyImage( image );
|
||||
if (dst_bits.free) dst_bits.free( &dst_bits );
|
||||
return ret;
|
||||
|
||||
update_format:
|
||||
|
Loading…
Reference in New Issue
Block a user