[PATCH 05/11] mi: fix memory leak in miFillUniqueSpanGroup

Tiago Vignatti tiago.vignatti at nokia.com
Fri Mar 25 11:41:47 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 mi/mispans.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mi/mispans.c b/mi/mispans.c
index 53539e5..92f0d02 100644
--- a/mi/mispans.c
+++ b/mi/mispans.c
@@ -458,6 +458,8 @@ void miFillUniqueSpanGroup(DrawablePtr pDraw, GCPtr pGC, SpanGroup *spanGroup)
 			    }
 			    free(yspans);
 			    free(ysizes);
+                            free(newpoints);
+                            free(newwidths);
 			    miDisposeSpanGroup (spanGroup);
 			    return;
 			}
-- 
1.7.0.4



More information about the xorg-devel mailing list