Commit e63d9de4 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXrender: fix another memleak

parent 78eff73e
...@@ -1004,7 +1004,11 @@ ProcRenderCompositeGlyphs (ClientPtr client) ...@@ -1004,7 +1004,11 @@ ProcRenderCompositeGlyphs (ClientPtr client)
elementsBase = malloc(nlist * sizeof(XGlyphElt8)); elementsBase = malloc(nlist * sizeof(XGlyphElt8));
if (!elementsBase) if (!elementsBase)
{
free(glyphsBase);
free(listsBase);
return BadAlloc; return BadAlloc;
}
buffer = (CARD8 *) (stuff + 1); buffer = (CARD8 *) (stuff + 1);
glyphs = glyphsBase; glyphs = glyphsBase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment