From 5aa5aeb1f56493cf7a6bafd22c6921d8415db64e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 3 Apr 2008 12:09:03 +0100 Subject: [PATCH] [cairo-font-face] Cleanup up the font_face on the error path. A missing _cairo_toy_font_face_fini() was leaking the strdup(family). --- src/cairo-font-face.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c index c7f0a44bf..49c8cdf73 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: