fb: Don't crash if copy_drawable() returns NULL.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24634 . Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
8754db77d8
commit
66a9616d64
|
@ -329,9 +329,11 @@ create_bits_picture (PicturePtr pict,
|
|||
pixman_image_t *image;
|
||||
DrawablePtr drawable;
|
||||
|
||||
if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW)
|
||||
if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW) {
|
||||
drawable = copy_drawable (pict->pDrawable);
|
||||
else
|
||||
if (!drawable)
|
||||
return NULL;
|
||||
} else
|
||||
drawable = pict->pDrawable;
|
||||
|
||||
fbGetDrawable (drawable, bits, stride, bpp, xoff, yoff);
|
||||
|
|
Loading…
Reference in New Issue
Block a user