diff --git a/src/hb-ft.cc b/src/hb-ft.cc index e716ec910..01341b604 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -454,7 +454,7 @@ static struct hb_ft_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t { do_destroy (instance.get ()); } - inline void free (void) + inline void free_instance (void) { retry: Stored *p = instance.get (); @@ -720,7 +720,7 @@ struct hb_lazy_loader_t : hb_data_wrapper_t static inline void destroy (Stored *p) { p->fini (); - ::free (p); + free (p); } private: diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 0b14ff1e2..9da8fc7d4 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -264,7 +264,7 @@ static struct hb_ot_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t + hb_shaper_list_lazy_loader_t> { static inline const char ** create (void) { @@ -72,7 +72,7 @@ static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t