Fix assertion failure

https://bugzilla.mozilla.org/show_bug.cgi?id=1476334
This commit is contained in:
Behdad Esfahbod 2018-08-08 21:42:18 -07:00
parent e49a38b20e
commit 883957688c
1 changed files with 2 additions and 1 deletions

View File

@ -639,7 +639,8 @@ struct hb_lazy_loader_t
inline void set_stored (Stored *instance_)
{
assert (instance == nullptr);
if (instance)
thiz ()->destroy (instance);
instance = instance_;
}