[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Aug 14 21:49:41 UTC 2017


 util/options.hh |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a88e2a73f34067381a81577c3f60bc5c2a6f2eea
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Aug 14 14:49:21 2017 -0700

    [util] Fix leaks

diff --git a/util/options.hh b/util/options.hh
index d134f7ac..e9fca381 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);


More information about the HarfBuzz mailing list