Commit 827f97c1 authored by Kirill Smirnov's avatar Kirill Smirnov Committed by Alexandre Julliard

winex11.drv: Fix an uninitialized variable (clang).

dst_bits structure is valid only if copy_image_bits() succeeded. Signed-off-by: 's avatarKirill K. Smirnov <kirill.k.smirnov@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c851ecca
......@@ -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:
......
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