diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 13:03:51 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 15:54:11 +0200 |
commit | 1f05cae0a9aaff23a4d80b309d30ed5047198113 (patch) | |
tree | a713ad94e8a920ad8a1bfec50f46a6777b144152 /src/cairo-font-face.c | |
parent | 96599225e2fd1f7d11071a19f1ceb2c33f2a453b (diff) | |
download | cairo-1f05cae0a9aaff23a4d80b309d30ed5047198113.tar.gz |
[cairo-font-face] Tolerate null font_face->backend->destroy()
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r-- | src/cairo-font-face.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c index 49c8cdf73..6fe6dfcb7 100644 --- a/src/cairo-font-face.c +++ b/src/cairo-font-face.c @@ -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 |