From 3d421ce30713582484471baba76470c84dabc118 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 11 Feb 2018 19:01:44 -0600 Subject: [PATCH] [subset] Use auto_array_t where it does make sense Better fix for https://github.com/harfbuzz/harfbuzz/pull/775 --- src/hb-subset-plan.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 95d4aeb99..a06d38ae5 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -75,8 +75,7 @@ _populate_gids_to_retain (hb_face_t *face, OT::cmap::accelerator_t cmap; cmap.init (face); - hb_prealloced_array_t bad_indices; - bad_indices.init (); + hb_auto_array_t bad_indices; old_gids.alloc (codepoints.len); bool has_zero = false;