Use FREE instead of free. Fix newlines.
authormichal <michal@michal-laptop.(none)>
Sat, 27 Oct 2007 17:53:38 +0000 (18:53 +0100)
committermichal <michal@michal-laptop.(none)>
Sat, 27 Oct 2007 18:04:20 +0000 (19:04 +0100)
12 files changed:
src/mesa/pipe/p_util.h
src/mesa/pipe/softpipe/sp_quad_alpha_test.c
src/mesa/pipe/softpipe/sp_quad_blend.c
src/mesa/pipe/softpipe/sp_quad_bufloop.c
src/mesa/pipe/softpipe/sp_quad_colormask.c
src/mesa/pipe/softpipe/sp_quad_coverage.c
src/mesa/pipe/softpipe/sp_quad_depth_test.c
src/mesa/pipe/softpipe/sp_quad_fs.c
src/mesa/pipe/softpipe/sp_quad_occlusion.c
src/mesa/pipe/softpipe/sp_quad_output.c
src/mesa/pipe/softpipe/sp_quad_stencil.c
src/mesa/pipe/softpipe/sp_quad_stipple.c

index 436bda2..319bb79 100644 (file)
@@ -32,6 +32,8 @@
 
 #define CALLOC_STRUCT(T)   (struct T *) calloc(1, sizeof(struct T))
 
+#define FREE( PTR )  free( PTR )
+
 #define CLAMP( X, MIN, MAX )  ( (X)<(MIN) ? (MIN) : ((X)>(MAX) ? (MAX) : (X)) )
 #define MIN2( A, B )   ( (A)<(B) ? (A) : (B) )
 #define MAX2( A, B )   ( (A)>(B) ? (A) : (B) )
index d9b914d..6a9cf29 100644 (file)
@@ -88,9 +88,9 @@ static void alpha_test_begin(struct quad_stage *qs)
 }
 
 
-static void alpha_test_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void alpha_test_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index cecf8af..696e252 100644 (file)
@@ -727,9 +727,9 @@ static void blend_begin(struct quad_stage *qs)
 }
 
 
-static void blend_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void blend_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index bdf491d..aac70e2 100644 (file)
@@ -50,9 +50,9 @@ static void cbuf_loop_begin(struct quad_stage *qs)
 }
 
 
-static void cbuf_loop_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void cbuf_loop_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index f0aa657..c585aa3 100644 (file)
@@ -90,9 +90,9 @@ static void colormask_begin(struct quad_stage *qs)
 }
 
 
-static void colormask_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void colormask_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index 25e7b03..9dfad7c 100644 (file)
@@ -69,9 +69,9 @@ static void coverage_begin(struct quad_stage *qs)
 }
 
 
-static void coverage_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void coverage_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index c24232b..9cb01d7 100644 (file)
@@ -231,9 +231,9 @@ static void depth_test_begin(struct quad_stage *qs)
 }
 
 
-static void depth_test_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void depth_test_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index 43c4d58..81e405d 100644 (file)
@@ -198,7 +198,11 @@ static void shade_begin(struct quad_stage *qs)
 
 static void shade_destroy(struct quad_stage *qs)
 {
-   free( qs );
+   struct quad_shade_stage *qss = (struct quad_shade_stage *) qs;
+
+   FREE( qss->inputs );
+   FREE( qss->outputs );
+   FREE( qs );
 }
 
 
index 18a36e8..028d30c 100644 (file)
@@ -64,9 +64,9 @@ static void occlusion_begin(struct quad_stage *qs)
 }
 
 
-static void occlusion_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void occlusion_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index 09194c1..cebfec1 100644 (file)
@@ -70,9 +70,9 @@ static void output_begin(struct quad_stage *qs)
 }
 
 
-static void output_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void output_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index 14aa7df..831ad8b 100644 (file)
@@ -323,9 +323,9 @@ static void stencil_begin(struct quad_stage *qs)
 }
 
 
-static void stencil_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void stencil_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }
 
 
index 7916dcd..fcbbf00 100644 (file)
@@ -65,9 +65,9 @@ static void stipple_begin(struct quad_stage *qs)
 }
 
 
-static void stipple_destroy(struct quad_stage *qs)\r
-{\r
-   free( qs );\r
+static void stipple_destroy(struct quad_stage *qs)
+{
+   FREE( qs );
 }