X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fspline.c;h=ed3d31cbca13308270d339d4c46cd11e2884d284;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hp=84de1cb47eb7581e56ed834aa77ea415eef9107a;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;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); +}