Fix lazy_loader fini()
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 9 Aug 2018 07:28:40 +0000 (00:28 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 9 Aug 2018 07:28:40 +0000 (00:28 -0700)
Was creating object even if wasn't there.

src/hb-machinery-private.hh

index fd35e40..9b58236 100644 (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);
   }