projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-2.21.tar.gz
[xscreensaver]
/
utils
/
spline.c
diff --git
a/utils/spline.c
b/utils/spline.c
index 84de1cb47eb7581e56ed834aa77ea415eef9107a..ed3d31cbca13308270d339d4c46cd11e2884d284 100644
(file)
--- a/
utils/spline.c
+++ b/
utils/spline.c
@@
-53,7
+53,7
@@
no_more_memory (void)
}
spline*
}
spline*
-make_spline (u
_
int size)
+make_spline (u
nsigned
int size)
{
spline* s = (spline*)calloc (1, sizeof (spline));
if (!s)
{
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;
}
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);
+}