提交 b56c9384 编写于 作者: G Garret Rieger

[subset] Add missing face reference in hb-subset-plan plus ensure all struct...

[subset] Add missing face reference in hb-subset-plan plus ensure all struct members are cleaned up on destroy.
上级 e0ffebea
......@@ -163,7 +163,7 @@ hb_subset_plan_create (hb_face_t *face,
plan->codepoints.init();
plan->gids_to_retain.init();
plan->gids_to_retain_sorted.init();
plan->source = face;
plan->source = hb_face_reference (face);
plan->dest = hb_subset_face_create ();
_populate_codepoints (input->unicodes, plan->codepoints);
......@@ -189,5 +189,8 @@ hb_subset_plan_destroy (hb_subset_plan_t *plan)
plan->gids_to_retain.finish ();
plan->gids_to_retain_sorted.finish ();
hb_face_destroy (plan->source);
hb_face_destroy (plan->dest);
free (plan);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册