Minor
This commit is contained in:
parent
ecab6604e5
commit
42c183f803
@ -496,8 +496,9 @@ reference_table (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
|
||||
return nullptr;
|
||||
|
||||
error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length);
|
||||
if (error) {
|
||||
free ((void*)buffer);
|
||||
if (error)
|
||||
{
|
||||
free (buffer);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -193,8 +193,9 @@ _hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan,
|
||||
|
||||
if (plan->shaper->data_create) {
|
||||
plan->data = plan->shaper->data_create (plan);
|
||||
if (unlikely (!plan->data)) {
|
||||
free ((void*)plan);
|
||||
if (unlikely (!plan->data))
|
||||
{
|
||||
free (plan);
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user