Commit 59f1d373 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXrender.c: fix possible memory leak

parent 157c8c7f
...@@ -715,6 +715,9 @@ ProcRenderTrapezoids (ClientPtr client) ...@@ -715,6 +715,9 @@ ProcRenderTrapezoids (ClientPtr client)
{ {
if (pFormat != NULL) if (pFormat != NULL)
{ {
if (nxagentTrapezoidExtents && nxagentTrapezoidExtents != NullBox)
free(nxagentTrapezoidExtents);
nxagentTrapezoidExtents = (BoxPtr) malloc(sizeof(BoxRec)); nxagentTrapezoidExtents = (BoxPtr) malloc(sizeof(BoxRec));
miTrapezoidBounds (ntraps, (xTrapezoid *) &stuff[1], nxagentTrapezoidExtents); miTrapezoidBounds (ntraps, (xTrapezoid *) &stuff[1], nxagentTrapezoidExtents);
......
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