Fix lazy_loader fini()

Was creating object even if wasn't there.
This commit is contained in:
Behdad Esfahbod committed 2018-08-09 00:28:40 -07:00
1 parent 1f7380944d
commit f1f4b45ac3
1 file changed
+1 -1
+1 -1
View File
@@ -609,7 +609,7 @@ struct hb_lazy_loader_t
}
inline void fini (void)
{
Stored *p = instance.get ();
Stored *p = this->instance.get ();
if (p)
thiz ()->destroy (p);
}