From: Garret Rieger Date: Fri, 23 Feb 2018 23:30:14 +0000 (-0800) Subject: [subset] Fix memory leak in subset face destroy. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a36b55fba03cd07c9b101f0222b8d189bcd3bbf;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [subset] Fix memory leak in subset face destroy. --- diff --git a/src/hb-subset.cc b/src/hb-subset.cc index b7d3e37..aff3aec 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -136,6 +136,9 @@ _hb_subset_face_data_destroy (void *user_data) { hb_subset_face_data_t *data = (hb_subset_face_data_t *) user_data; + for (int i = 0; i < data->tables.len; i++) + hb_blob_destroy (data->tables[i].blob); + data->tables.finish (); free (data);