diff options
author | Carl Worth <cworth@cworth.org> | 2007-08-23 16:33:05 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-08-23 16:33:05 -0700 |
commit | 93ae6fe18c417a22f1fccb22add4890a20cae713 (patch) | |
tree | 559c3d08609baab1575ae58d9defe22eaa8239ab /render | |
parent | 0a71e1542a07abc5e32501973a7cf6de3f641317 (diff) |
Avoid leaking a Pixmap for every glyph
Diffstat (limited to 'render')
-rw-r--r-- | render/render.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/render/render.c b/render/render.c index 300b78488..1a1cd7a0e 100644 --- a/render/render.c +++ b/render/render.c @@ -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; |