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:
Kirill Smirnov 2016-07-08 01:50:19 +03:00 committed by Alexandre Julliard
parent c851ecca2b
commit 827f97c1ab

View File

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