diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cairotwisted.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c index 27b9fb04..81404172 100644 --- a/examples/cairotwisted.c +++ b/examples/cairotwisted.c @@ -457,6 +457,7 @@ map_path_onto (cairo_t *cr, cairo_path_t *path) cairo_append_path (cr, current_path); + cairo_path_destroy (current_path); g_free (param.parametrization); } @@ -532,6 +533,8 @@ draw_twisted (cairo_t *cr, draw_text (cr, x, y, font, text); map_path_onto (cr, path); + cairo_path_destroy (path); + cairo_fill_preserve (cr); cairo_save (cr); |