mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
[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:
parent
bcfc5f0bdb
commit
9ffd8154e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
subsets->scaled_sub_fonts = _cairo_hash_table_create (_cairo_sub_fonts_equal);
|
||||||
if (! subsets->scaled_sub_fonts) {
|
if (! subsets->scaled_sub_fonts) {
|
||||||
free (subsets->unscaled_sub_fonts);
|
_cairo_hash_table_destroy (subsets->unscaled_sub_fonts);
|
||||||
free (subsets);
|
free (subsets);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue