summaryrefslogtreecommitdiff
path: root/src/cairo-spline.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-03-13 06:09:09 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-03-13 06:09:09 -0400
commitdeed0f473400bc2e91dde8bad2537d499a5941ea (patch)
treed85a06ca85b2bac20e93c710fa082a205adbf078 /src/cairo-spline.c
parentb706bd9b38d505d2b09e932a8f362fac76ef64de (diff)
[polygon,spline,traps] Avoid free(NULL)
Diffstat (limited to 'src/cairo-spline.c')
-rw-r--r--src/cairo-spline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-spline.c b/src/cairo-spline.c
index 3fd0f13e..3624bfc3 100644
--- a/src/cairo-spline.c
+++ b/src/cairo-spline.c
@@ -90,7 +90,7 @@ _cairo_spline_init (cairo_spline_t *spline,
void
_cairo_spline_fini (cairo_spline_t *spline)
{
- if (spline->points != spline->points_embedded)
+ if (spline->points && spline->points != spline->points_embedded)
free (spline->points);
spline->points = NULL;