[cairo-scaled-font-subsets] Correctly destroy the hash table.

After an allocation failure in
_cairo_scaled_font_subsets_create_internal() call
_cairo_hash_table_destroy() instead of a mere free().
This commit is contained in:
Chris Wilson 2007-05-11 23:43:53 +01:00
parent bcfc5f0bdb
commit 9ffd8154e2

View file

@ -425,7 +425,7 @@ _cairo_scaled_font_subsets_create_internal (cairo_subsets_type_t type)
subsets->scaled_sub_fonts = _cairo_hash_table_create (_cairo_sub_fonts_equal);
if (! subsets->scaled_sub_fonts) {
free (subsets->unscaled_sub_fonts);
_cairo_hash_table_destroy (subsets->unscaled_sub_fonts);
free (subsets);
return NULL;
}