mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 12:38:02 +02:00
[cairo-font-face] Cleanup up the font_face on the error path.
A missing _cairo_toy_font_face_fini() was leaking the strdup(family).
This commit is contained in:
parent
048160d44c
commit
5aa5aeb1f5
1 changed files with 1 additions and 0 deletions
|
|
@ -433,6 +433,7 @@ _cairo_toy_font_face_create (const char *family,
|
|||
return &font_face->base;
|
||||
|
||||
UNWIND_FONT_FACE_INIT:
|
||||
_cairo_toy_font_face_fini (font_face);
|
||||
UNWIND_FONT_FACE_MALLOC:
|
||||
free (font_face);
|
||||
UNWIND_HASH_TABLE_LOCK:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue