http://ftp.x.org/contrib/applications/xscreensaver-2.21.tar.gz
[xscreensaver] / utils / spline.c
index 84de1cb47eb7581e56ed834aa77ea415eef9107a..ed3d31cbca13308270d339d4c46cd11e2884d284 100644 (file)
@@ -53,7 +53,7 @@ no_more_memory (void)
 }
 
 spline*
-make_spline (u_int size)
+make_spline (unsigned int size)
 {
   spline* s = (spline*)calloc (1, sizeof (spline));
   if (!s)
@@ -319,3 +319,12 @@ spline_bounding_box (spline *s, XRectangle *rectangle_out)
   rectangle_out->width = max_x - min_x;
   rectangle_out->height = max_y - min_y;
 }
+
+void
+free_spline(spline * s)
+{
+  free ((void *) s->control_x);
+  free ((void *) s->control_y);
+  free ((void *) s->points);
+  free ((void *) s);
+}