mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 04:38:04 +02:00
Remove some potential double free
Signed-off-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
85b05e84ac
commit
5e7b724dd3
1 changed files with 2 additions and 2 deletions
|
|
@ -1564,12 +1564,12 @@ _cairo_truetype_read_font_name (cairo_scaled_font_t *scaled_font,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
free (name);
|
||||
|
||||
status = _cairo_escape_ps_name (&ps_name);
|
||||
if (unlikely(status))
|
||||
goto fail;
|
||||
|
||||
free (name);
|
||||
|
||||
*ps_name_out = ps_name;
|
||||
*font_name_out = family_name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue