diff --git a/src/hb-subset-glyf.cc b/src/hb-subset-glyf.cc index 952946786d1ee935b0418b4394d952b26b4cc10e..0a06313e385a93559f7251b10335040d77f3c93e 100644 --- a/src/hb-subset-glyf.cc +++ b/src/hb-subset-glyf.cc @@ -132,8 +132,8 @@ _hb_subset_glyf_and_loca (const OT::glyf::accelerator_t &glyf, return false; } - char *glyf_prime_data = (char *) calloc (glyf_prime_size, 1); - char *loca_prime_data = (char *) calloc (loca_prime_size, 1); + char *glyf_prime_data = (char *) malloc (glyf_prime_size); + char *loca_prime_data = (char *) malloc (loca_prime_size); if (unlikely (!_write_glyf_and_loca_prime (glyf, glyf_data, glyphs_to_retain, *use_short_loca, glyf_prime_size, glyf_prime_data,