[subset] Remove not needed blob sanitize call

This commit is contained in:
Ebrahim Byagowi 2020-03-10 10:40:05 +03:30
parent 07acd1a042
commit 8ca9df7acb
2 changed files with 6 additions and 15 deletions

View File

@ -922,13 +922,9 @@ _hb_subset_cff1 (const OT::cff1::accelerator_subset_t &acc,
bool bool
hb_subset_cff1 (hb_subset_context_t *c) hb_subset_cff1 (hb_subset_context_t *c)
{ {
hb_blob_t *cff_blob = hb_sanitize_context_t().reference_table<CFF::cff1> (c->plan->source);
OT::cff1::accelerator_subset_t acc; OT::cff1::accelerator_subset_t acc;
acc.init(c->plan->source); acc.init (c->plan->source);
bool result = likely (acc.is_valid ()) && bool result = likely (acc.is_valid ()) && _hb_subset_cff1 (acc, c);
_hb_subset_cff1 (acc, c);
hb_blob_destroy (cff_blob);
acc.fini (); acc.fini ();
return result; return result;

View File

@ -478,14 +478,9 @@ _hb_subset_cff2 (const OT::cff2::accelerator_subset_t &acc,
bool bool
hb_subset_cff2 (hb_subset_context_t *c) hb_subset_cff2 (hb_subset_context_t *c)
{ {
hb_blob_t *cff2_blob = hb_sanitize_context_t().reference_table<CFF::cff2> (c->plan->source);
OT::cff2::accelerator_subset_t acc; OT::cff2::accelerator_subset_t acc;
acc.init(c->plan->source); acc.init (c->plan->source);
bool result = likely (acc.is_valid ()) && bool result = likely (acc.is_valid ()) && _hb_subset_cff2 (acc, c);
_hb_subset_cff2 (acc, c);
hb_blob_destroy (cff2_blob);
acc.fini (); acc.fini ();
return result; return result;