mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-08 09:18:19 +02:00
[cairo-ft-font] Destroy the unscaled reference on error.
Release the reference to the unscaled font if we encounter an error whilst initialising the cairo_ft_scaled_font_t.
This commit is contained in:
parent
e4055f02a1
commit
abb19e61cf
1 changed files with 1 additions and 0 deletions
|
|
@ -1466,6 +1466,7 @@ _cairo_ft_scaled_font_create (cairo_ft_unscaled_font_t *unscaled,
|
|||
&cairo_ft_scaled_font_backend);
|
||||
if (status) {
|
||||
free (scaled_font);
|
||||
_cairo_unscaled_font_destroy (&unscaled->base);
|
||||
_cairo_ft_unscaled_font_unlock_face (unscaled);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue