提交 42c183f8 编写于 作者: B Behdad Esfahbod

Minor

上级 ecab6604
...@@ -496,8 +496,9 @@ reference_table (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data) ...@@ -496,8 +496,9 @@ reference_table (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
return nullptr; return nullptr;
error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length); error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length);
if (error) { if (error)
free ((void*)buffer); {
free (buffer);
return nullptr; return nullptr;
} }
......
...@@ -193,8 +193,9 @@ _hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan, ...@@ -193,8 +193,9 @@ _hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan,
if (plan->shaper->data_create) { if (plan->shaper->data_create) {
plan->data = plan->shaper->data_create (plan); plan->data = plan->shaper->data_create (plan);
if (unlikely (!plan->data)) { if (unlikely (!plan->data))
free ((void*)plan); {
free (plan);
return nullptr; return nullptr;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册