From 0930248bb1336064337e636aab0f17ee0f8f7043 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 1 Feb 2007 07:22:25 -0700 Subject: fix mem leak in __glXReportDamage (Panagiotis Papadakos) --- src/glx/x11/glxext.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glx/x11') diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 7f38573..d24f853 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -758,6 +758,7 @@ static void __glXReportDamage(__DRInativeDisplay *dpy, int screen, xrects[i].height = rects[i].y2 - rects[i].y1; } region = XFixesCreateRegion(dpy, xrects, num_rects); + free(xrects); XDamageAdd(dpy, drawable, region); XFixesDestroyRegion(dpy, region); #endif -- cgit v1.1