fix mem leak in __glXReportDamage (Panagiotis Papadakos)
authorBrian <brian@yutani.localnet.net>
Thu, 1 Feb 2007 14:22:25 +0000 (07:22 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 1 Feb 2007 14:22:25 +0000 (07:22 -0700)
src/glx/x11/glxext.c

index 7f3857360d0e91b1473b22dd61015b6779378b8d..d24f853d546dcd0d99dd050bafcac7ffd7170324 100644 (file)
@@ -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