diff options
-rwxr-xr-x | src/cairo-recording-surface.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index ba51fc349..2406eba97 100755 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -765,7 +765,8 @@ _cairo_recording_surface_paint (void *abstract_surface, _cairo_recording_surface_destroy_bbtree (surface); - status = CAIRO_STATUS_SUCCESS; + _cairo_composite_rectangles_fini (&composite); + return CAIRO_STATUS_SUCCESS; CLEANUP_SOURCE: _cairo_pattern_fini (&command->source.base); @@ -824,7 +825,8 @@ _cairo_recording_surface_mask (void *abstract_surface, _cairo_recording_surface_destroy_bbtree (surface); - status = CAIRO_STATUS_SUCCESS; + _cairo_composite_rectangles_fini (&composite); + return CAIRO_STATUS_SUCCESS; CLEANUP_MASK: _cairo_pattern_fini (&command->mask.base); @@ -900,7 +902,8 @@ _cairo_recording_surface_stroke (void *abstract_surface, _cairo_recording_surface_destroy_bbtree (surface); - status = CAIRO_STATUS_SUCCESS; + _cairo_composite_rectangles_fini (&composite); + return CAIRO_STATUS_SUCCESS; CLEANUP_STYLE: _cairo_stroke_style_fini (&command->style); @@ -970,7 +973,8 @@ _cairo_recording_surface_fill (void *abstract_surface, _cairo_recording_surface_destroy_bbtree (surface); - status = CAIRO_STATUS_SUCCESS; + _cairo_composite_rectangles_fini (&composite); + return CAIRO_STATUS_SUCCESS; CLEANUP_PATH: _cairo_path_fixed_fini (&command->path); @@ -1077,7 +1081,8 @@ _cairo_recording_surface_show_text_glyphs (void *abstract_surface, if (unlikely (status)) goto CLEANUP_SCALED_FONT; - status = CAIRO_STATUS_SUCCESS; + _cairo_composite_rectangles_fini (&composite); + return CAIRO_STATUS_SUCCESS; CLEANUP_SCALED_FONT: cairo_scaled_font_destroy (command->scaled_font); @@ -1136,7 +1141,7 @@ _cairo_recording_surface_copy__paint (cairo_recording_surface_t *surface, if (unlikely (status)) goto err_source; - status = CAIRO_STATUS_SUCCESS; + return CAIRO_STATUS_SUCCESS; err_source: _cairo_pattern_fini (&command->source.base); @@ -1175,7 +1180,7 @@ _cairo_recording_surface_copy__mask (cairo_recording_surface_t *surface, if (unlikely (status)) goto err_mask; - status = CAIRO_STATUS_SUCCESS; + return CAIRO_STATUS_SUCCESS; err_mask: _cairo_pattern_fini (&command->mask.base); @@ -1225,7 +1230,7 @@ _cairo_recording_surface_copy__stroke (cairo_recording_surface_t *surface, if (unlikely (status)) goto err_style; - status = CAIRO_STATUS_SUCCESS; + return CAIRO_STATUS_SUCCESS; err_style: _cairo_stroke_style_fini (&command->style); @@ -1271,7 +1276,7 @@ _cairo_recording_surface_copy__fill (cairo_recording_surface_t *surface, if (unlikely (status)) goto err_path; - status = CAIRO_STATUS_SUCCESS; + return CAIRO_STATUS_SUCCESS; err_path: _cairo_path_fixed_fini (&command->path); @@ -1348,7 +1353,7 @@ _cairo_recording_surface_copy__glyphs (cairo_recording_surface_t *surface, if (unlikely (status)) goto err_arrays; - status = CAIRO_STATUS_SUCCESS; + return CAIRO_STATUS_SUCCESS; err_arrays: free (command->utf8); |