mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 03:48:03 +02:00
[cairo-font-face] Tolerate null font_face->backend->destroy()
This commit is contained in:
parent
96599225e2
commit
1f05cae0a9
1 changed files with 2 additions and 1 deletions
|
|
@ -132,7 +132,8 @@ cairo_font_face_destroy (cairo_font_face_t *font_face)
|
|||
if (! _cairo_reference_count_dec_and_test (&font_face->ref_count))
|
||||
return;
|
||||
|
||||
font_face->backend->destroy (font_face);
|
||||
if (font_face->backend->destroy)
|
||||
font_face->backend->destroy (font_face);
|
||||
|
||||
/* We allow resurrection to deal with some memory management for the
|
||||
* FreeType backend where cairo_ft_font_face_t and cairo_ft_unscaled_font_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue