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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-12-20 19:29:31 +00:00
parent deb908fda7
commit de2de36049
1 changed files with 1 additions and 1 deletions

View File

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