diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-23 10:34:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-23 10:35:17 +0000 |
commit | 8a8c2f6c282c1822dc1a638c2258c8449b1d678b (patch) | |
tree | b0c7ad9c095d9062f558277830d9f7a6763dcf5f /src/cairo-recording-surface.c | |
parent | 4c55c87478a2595569f9c1f13657c3d309f31407 (diff) |
cairo: Typos in docs.
A couple of typos reported by Damien Carbonne.
Diffstat (limited to 'src/cairo-recording-surface.c')
-rw-r--r-- | src/cairo-recording-surface.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index 7f9c7664..5f0a2989 100644 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -196,26 +196,22 @@ _cairo_recording_surface_finish (void *abstract_surface) switch (command->header.type) { case CAIRO_COMMAND_PAINT: _cairo_pattern_fini_snapshot (&command->paint.source.base); - free (command); break; case CAIRO_COMMAND_MASK: _cairo_pattern_fini_snapshot (&command->mask.source.base); _cairo_pattern_fini_snapshot (&command->mask.mask.base); - free (command); break; case CAIRO_COMMAND_STROKE: _cairo_pattern_fini_snapshot (&command->stroke.source.base); _cairo_path_fixed_fini (&command->stroke.path); _cairo_stroke_style_fini (&command->stroke.style); - free (command); break; case CAIRO_COMMAND_FILL: _cairo_pattern_fini_snapshot (&command->fill.source.base); _cairo_path_fixed_fini (&command->fill.path); - free (command); break; case CAIRO_COMMAND_SHOW_TEXT_GLYPHS: @@ -224,16 +220,18 @@ _cairo_recording_surface_finish (void *abstract_surface) free (command->show_text_glyphs.glyphs); free (command->show_text_glyphs.clusters); cairo_scaled_font_destroy (command->show_text_glyphs.scaled_font); - free (command); break; default: ASSERT_NOT_REACHED; } + + _cairo_clip_fini (&command->header.clip); + free (command); } _cairo_array_fini (&recording_surface->commands); - _cairo_clip_reset (&recording_surface->clip); + _cairo_clip_fini (&recording_surface->clip); return CAIRO_STATUS_SUCCESS; } |