summaryrefslogtreecommitdiff
path: root/src/cairo-gstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-gstate.c')
-rw-r--r--src/cairo-gstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 11a7b517..1d59fc54 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -517,8 +517,7 @@ _cairo_gstate_set_dash (cairo_gstate_t *gstate, const double *dash, int num_dash
unsigned int i;
double dash_total;
- if (gstate->stroke_style.dash)
- free (gstate->stroke_style.dash);
+ free (gstate->stroke_style.dash);
gstate->stroke_style.num_dashes = num_dashes;