From 827f97c1ab87c11d38b31e21f593e4d99a954004 Mon Sep 17 00:00:00 2001 From: Kirill Smirnov Date: Fri, 8 Jul 2016 01:50:19 +0300 Subject: [PATCH] winex11.drv: Fix an uninitialized variable (clang). dst_bits structure is valid only if copy_image_bits() succeeded. Signed-off-by: Kirill K. Smirnov Signed-off-by: Alexandre Julliard --- dlls/winex11.drv/bitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c index 8d61a4b8e86..80256dce569 100644 --- a/dlls/winex11.drv/bitblt.c +++ b/dlls/winex11.drv/bitblt.c @@ -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: