mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 02:30:11 +01:00
scaled-font: Check for an error return when retrieving the implementation
This commit is contained in:
parent
c93e6f014d
commit
c549203c8d
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue