Avoid leaking a Pixmap for every glyph

This commit is contained in:
Carl Worth 2007-08-23 16:33:05 -07:00
parent 0a71e1542a
commit 93ae6fe18c

View File

@ -1209,6 +1209,11 @@ ProcRenderAddGlyphs (ClientPtr client)
glyphSet->format,
CPComponentAlpha, &component_alpha,
serverClient, &error);
/* The picture takes a reference to the pixmap, so we
drop ours. */
(pScreen->DestroyPixmap) (pDstPix);
if (! pDst)
{
err = BadAlloc;