[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:
Chris Wilson 2008-04-03 12:09:03 +01:00
parent 048160d44c
commit 5aa5aeb1f5

View file

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