diff --git a/render/render.c b/render/render.c index a32d797..93bb9ef 100644 --- a/render/render.c +++ b/render/render.c @@ -1159,6 +1159,12 @@ ProcRenderAddGlyphs (ClientPtr client) width, height, depth, CREATE_PIXMAP_USAGE_GLYPH_PICTURE); + if (! pDstPix) /* Usually implies display driver rejected width, height, depth, etc... */ + { + err = BadValue; + goto bail; + } + GlyphPicture (glyph)[screen] = pDst = CreatePicture (0, &pDstPix->drawable, glyphSet->format,