summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-03-31 10:39:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-03-31 12:16:03 +0100
commite46c1d7fa34b4ba89fc3e0fe6f3042a6fa8c0398 (patch)
tree24f8226812278d9ccc6a0f17dc2ea59c38503cd0
parent180b964aac4e058e6783778d33772f08e13b3669 (diff)
[scaled-font-subset] Cleanup after failure to convert to utf16.
Avoid leaking the local hashtable and strings after failing to convert the string to utf16.
-rw-r--r--src/cairo-scaled-font-subsets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-scaled-font-subsets.c b/src/cairo-scaled-font-subsets.c
index 1d16e4ab..44e850e4 100644
--- a/src/cairo-scaled-font-subsets.c
+++ b/src/cairo-scaled-font-subsets.c
@@ -1025,7 +1025,7 @@ _cairo_scaled_font_subset_create_glyph_names (cairo_scaled_font_subset_t *subset
if (utf8 && *utf8) {
status = _cairo_utf8_to_utf16 (utf8, -1, &utf16, &utf16_len);
if (unlikely (status))
- return status; /* FIXME */
+ goto CLEANUP_HASH;
}
if (utf16_len == 1) {