Do not leak hb_language_t on hb_language_item_t destruction

This commit is contained in:
Konstantin Ritt 2015-01-27 11:23:07 +04:00 committed by Behdad Esfahbod
parent b306f9674a
commit 675956aca0
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ retry:
*lang = key;
if (!hb_atomic_ptr_cmpexch (&langs, first_lang, lang)) {
lang->finish ();
free (lang);
goto retry;
}