[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:
parent
9aa2eb61e6
commit
3d421ce307
|
@ -75,8 +75,7 @@ _populate_gids_to_retain (hb_face_t *face,
|
||||||
OT::cmap::accelerator_t cmap;
|
OT::cmap::accelerator_t cmap;
|
||||||
cmap.init (face);
|
cmap.init (face);
|
||||||
|
|
||||||
hb_prealloced_array_t<unsigned int> bad_indices;
|
hb_auto_array_t<unsigned int> bad_indices;
|
||||||
bad_indices.init ();
|
|
||||||
|
|
||||||
old_gids.alloc (codepoints.len);
|
old_gids.alloc (codepoints.len);
|
||||||
bool has_zero = false;
|
bool has_zero = false;
|
||||||
|
|
Loading…
Reference in New Issue