scaled-font: Check for an error return when retrieving the implementation

This commit is contained in:
Chris Wilson 2010-05-03 19:21:18 +01:00
parent c93e6f014d
commit c549203c8d

View file

@ -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,