diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-20 19:29:31 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-20 19:29:31 +0000 |
commit | de2de36049e2958a60f63fadffe8f54de8da1e56 (patch) | |
tree | 85082cb819318fab2b976ad74c74c43ed53ff93a /src/sna/sna_render.c | |
parent | deb908fda74541fba649349db279715b05d0554e (diff) |
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>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r-- | src/sna/sna_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |