mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
[subset-plan] Another error check
This commit is contained in:
parent
5ec0ccad63
commit
f772071f3e
2 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,8 @@ struct hb_subset_accelerator_t
|
|||
hb_subset_accelerator_t* accel =
|
||||
(hb_subset_accelerator_t*) hb_calloc (1, sizeof(hb_subset_accelerator_t));
|
||||
|
||||
if (unlikely (!accel)) return accel;
|
||||
|
||||
new (accel) hb_subset_accelerator_t (unicode_to_gid_,
|
||||
gid_to_unicodes_,
|
||||
unicodes_,
|
||||
|
|
|
@ -1052,6 +1052,8 @@ hb_subset_plan_t::hb_subset_plan_t (hb_face_t *face,
|
|||
gid_to_unicodes,
|
||||
unicodes,
|
||||
has_seac);
|
||||
|
||||
check_success (inprogress_accelerator);
|
||||
}
|
||||
|
||||
#define HB_SUBSET_PLAN_MEMBER(Type, Name) check_success (!Name.in_error ());
|
||||
|
|
Loading…
Add table
Reference in a new issue