From a88e2a73f34067381a81577c3f60bc5c2a6f2eea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 14 Aug 2017 14:49:21 -0700 Subject: [PATCH] [util] Fix leaks --- util/options.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/options.hh b/util/options.hh index d134f7ac4..e9fca381c 100644 --- a/util/options.hh +++ b/util/options.hh @@ -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);