sna: Skip glyphs if we fail to allocate pixel data for them
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6a8188bb4d
commit
37c525a11c
|
|
@ -7506,6 +7506,8 @@ static bool sna_set_glyph(CharInfoPtr in, CharInfoPtr out)
|
|||
|
||||
out->metrics = in->metrics;
|
||||
out->bits = malloc(w*h);
|
||||
if (out->bits == NULL)
|
||||
return false;
|
||||
|
||||
src = (uint8_t *)in->bits;
|
||||
dst = (uint8_t *)out->bits;
|
||||
|
|
|
|||
Loading…
Reference in New Issue