X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=utils%2Fspline.c;h=ed3d31cbca13308270d339d4c46cd11e2884d284;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hp=84de1cb47eb7581e56ed834aa77ea415eef9107a;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b;p=xscreensaver diff --git a/utils/spline.c b/utils/spline.c index 84de1cb4..ed3d31cb 100644 --- a/utils/spline.c +++ b/utils/spline.c @@ -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); +}