Avoid leaking a Pixmap for every glyph
This commit is contained in:
parent
0a71e1542a
commit
93ae6fe18c
|
@ -1209,6 +1209,11 @@ ProcRenderAddGlyphs (ClientPtr client)
|
||||||
glyphSet->format,
|
glyphSet->format,
|
||||||
CPComponentAlpha, &component_alpha,
|
CPComponentAlpha, &component_alpha,
|
||||||
serverClient, &error);
|
serverClient, &error);
|
||||||
|
|
||||||
|
/* The picture takes a reference to the pixmap, so we
|
||||||
|
drop ours. */
|
||||||
|
(pScreen->DestroyPixmap) (pDstPix);
|
||||||
|
|
||||||
if (! pDst)
|
if (! pDst)
|
||||||
{
|
{
|
||||||
err = BadAlloc;
|
err = BadAlloc;
|
||||||
|
|
Loading…
Reference in New Issue