From f1f4b45ac3d228a6b11e33357725de065e2ba2be Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 9 Aug 2018 00:28:40 -0700 Subject: [PATCH] Fix lazy_loader fini() Was creating object even if wasn't there. --- src/hb-machinery-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-machinery-private.hh b/src/hb-machinery-private.hh index fd35e4060..9b5823619 100644 --- a/src/hb-machinery-private.hh +++ b/src/hb-machinery-private.hh @@ -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); }