diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-03 12:09:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-03 15:41:31 +0100 |
commit | 5aa5aeb1f56493cf7a6bafd22c6921d8415db64e (patch) | |
tree | fa29cb5aa3cd6949691dbc976970bb7567a40939 /src/cairo-font-face.c | |
parent | 048160d44c564b0265b2e740b13d6ed3b367661d (diff) |
[cairo-font-face] Cleanup up the font_face on the error path.
A missing _cairo_toy_font_face_fini() was leaking the strdup(family).
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r-- | src/cairo-font-face.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c index c7f0a44b..49c8cdf7 100644 --- a/src/cairo-font-face.c +++ b/src/cairo-font-face.c @@ -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: |