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:
Sylvestre Ledru 2014-05-07 17:16:09 +02:00 committed by Uli Schlachter
parent 2be98be04e
commit 3434b79281

View file

@ -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;