From de2de36049e2958a60f63fadffe8f54de8da1e56 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 20 Dec 2012 19:29:31 +0000 Subject: [PATCH] sna: Check the correct variable for a failed allocation Having already checked 'dst' and just allocated 'src', that is who we should be checking. Signed-off-by: Chris Wilson --- src/sna/sna_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 90e6e235..336a4238 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -1725,7 +1725,7 @@ sna_render_picture_convert(struct sna *sna, pixmap->drawable.depth, picture->format), 0, NULL, serverClient, &error); - if (dst == NULL) { + if (src == NULL) { FreePicture(dst, 0); screen->DestroyPixmap(tmp); return 0;