From 00e8de212b46a243f243b437b7eb866315ab89b3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 21 Sep 2009 22:14:21 +0100 Subject: Check the correct Picture for error during creation. --- uxa/uxa-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uxa') diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index 8eee6a69..4850185d 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -361,7 +361,7 @@ uxa_picture_from_a1_pixman_image (ScreenPtr pScreen, PictureMatchFormat (pScreen, 1, PICT_a1), 0, 0, serverClient, &error); FreeScratchPixmapHeader (pPixmap); - if (!pPicture) { + if (!pSrc) { FreePicture (pPicture, 0); return 0; } -- cgit v1.2.3