[util] Fix leaks

This commit is contained in:
Behdad Esfahbod 2017-08-14 14:49:21 -07:00
parent 338e61ad1b
commit a88e2a73f3
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ struct shape_options_t : option_group_t
{
if (error)
*error = "all shapers failed while shaping fragment.";
hb_buffer_destroy (reconstruction);
hb_buffer_destroy (fragment);
return false;
}
hb_buffer_append (reconstruction, fragment, 0, -1);