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:
parent
deb908fda7
commit
de2de36049
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue