Skip to content

Commit

Permalink
Do not leak hb_language_t on hb_language_item_t destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRitt authored and behdad committed Jan 27, 2015
1 parent b306f96 commit 675956a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hb-common.cc
Expand Up @@ -265,6 +265,7 @@ lang_find_or_insert (const char *key)
*lang = key;

if (!hb_atomic_ptr_cmpexch (&langs, first_lang, lang)) {
lang->finish ();
free (lang);
goto retry;
}
Expand Down

0 comments on commit 675956a

Please sign in to comment.