[cairo-commit] src/cairo-user-font.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Jul 2 09:04:14 PDT 2010
src/cairo-user-font.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4c039b1cdfac5b5d6aa0c38f0779213fd14ec7de
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Jul 2 17:01:12 2010 +0100
user-font: Check the status before destroying the context
diff --git a/src/cairo-user-font.c b/src/cairo-user-font.c
index 34638ad..326b804 100644
--- a/src/cairo-user-font.c
+++ b/src/cairo-user-font.c
@@ -136,11 +136,11 @@ _cairo_user_scaled_glyph_init (void *abstract_font,
status = face->scaled_font_methods.render_glyph ((cairo_scaled_font_t *)scaled_font,
_cairo_scaled_glyph_index(scaled_glyph),
cr, &extents);
- cairo_destroy (cr);
-
if (status == CAIRO_STATUS_SUCCESS)
status = cairo_status (cr);
+ cairo_destroy (cr);
+
if (unlikely (status)) {
cairo_surface_destroy (recording_surface);
return status;
More information about the cairo-commit
mailing list