diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-03 19:21:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-03 19:21:18 +0100 |
commit | c549203c8d69474be4362037f702e4fb59c9929e (patch) | |
tree | 6515593cb3249d1a1a18b0db37ee17e94567e262 | |
parent | c93e6f014d9678b1aea34fd7a30a1fc2f51c6347 (diff) |
scaled-font: Check for an error return when retrieving the implementation
-rw-r--r-- | src/cairo-scaled-font.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c index 016adaba..5ed69b16 100644 --- a/src/cairo-scaled-font.c +++ b/src/cairo-scaled-font.c @@ -948,6 +948,10 @@ cairo_scaled_font_create (cairo_font_face_t *font_face, font_matrix, ctm, options); + if (unlikely (font_face->status)) { + _cairo_scaled_font_map_unlock (); + return _cairo_scaled_font_create_in_error (font_face->status); + } } _cairo_scaled_font_init_key (&key, font_face, @@ -960,6 +964,10 @@ cairo_scaled_font_create (cairo_font_face_t *font_face, font_matrix, ctm, options); + if (unlikely (font_face->status)) { + _cairo_scaled_font_map_unlock (); + return _cairo_scaled_font_create_in_error (font_face->status); + } } _cairo_scaled_font_init_key (&key, font_face, |