[subset] Use auto_array_t where it does make sense

Better fix for https://github.com/harfbuzz/harfbuzz/pull/775
This commit is contained in:
Behdad Esfahbod 2018-02-11 19:01:44 -06:00
parent 9aa2eb61e6
commit 3d421ce307
1 changed files with 1 additions and 2 deletions

View File

@ -75,8 +75,7 @@ _populate_gids_to_retain (hb_face_t *face,
OT::cmap::accelerator_t cmap;
cmap.init (face);
hb_prealloced_array_t<unsigned int> bad_indices;
bad_indices.init ();
hb_auto_array_t<unsigned int> bad_indices;
old_gids.alloc (codepoints.len);
bool has_zero = false;