From 4c61bf84b11e26e6f22648668c95ea760a379163 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 11 Jun 2010 12:14:52 +0000 Subject: xserver git update 11/6/2010 --- xorg-server/mi/mipolycon.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'xorg-server/mi/mipolycon.c') diff --git a/xorg-server/mi/mipolycon.c b/xorg-server/mi/mipolycon.c index 170b2aa1a..7c9b47747 100644 --- a/xorg-server/mi/mipolycon.c +++ b/xorg-server/mi/mipolycon.c @@ -104,14 +104,14 @@ miFillConvexPoly( dy = ymax - ymin + 1; if ((count < 3) || (dy < 0)) - return(TRUE); + return TRUE; ptsOut = FirstPoint = malloc(sizeof(DDXPointRec)*dy); width = FirstWidth = malloc(sizeof(int) * dy); if(!FirstPoint || !FirstWidth) { - if (FirstWidth) free(FirstWidth); - if (FirstPoint) free(FirstPoint); - return(FALSE); + free(FirstWidth); + free(FirstPoint); + return FALSE; } nextleft = nextright = imin; @@ -177,7 +177,7 @@ miFillConvexPoly( { free(FirstWidth); free(FirstPoint); - return(TRUE); + return TRUE; } while (i-- > 0) { @@ -212,7 +212,7 @@ miFillConvexPoly( 1); free(FirstWidth); free(FirstPoint); - return(TRUE); + return TRUE; } @@ -243,5 +243,5 @@ getPolyYBounds(DDXPointPtr pts, int n, int *by, int *ty) *by = ymin; *ty = ymax; - return(ptMin-ptsStart); + return ptMin-ptsStart; } -- cgit v1.2.3