From: Konstantin Ritt Date: Tue, 27 Jan 2015 07:23:07 +0000 (+0400) Subject: Do not leak hb_language_t on hb_language_item_t destruction X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=675956aca01fc4e005a338af43d1c1f4f938abd1;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Do not leak hb_language_t on hb_language_item_t destruction --- diff --git a/src/hb-common.cc b/src/hb-common.cc index 8837cef..05a1f9c 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -265,6 +265,7 @@ retry: *lang = key; if (!hb_atomic_ptr_cmpexch (&langs, first_lang, lang)) { + lang->finish (); free (lang); goto retry; }