[HarfBuzz] What's the correct Create/Destory usage of hb_ft_face/font ?

Tom Hacohen tom.hacohen at partner.samsung.com
Tue Oct 26 02:58:24 PDT 2010


Hey all,

I don't understand what's the correct way of using those.

Currently I just:
   hb_face = hb_ft_face_create(face, NULL);
   hb_font = hb_ft_font_create(face, NULL);

   hb_font_destroy(hb_font);
   hb_face_destroy(hb_face);

But I think I'm doing something wrong, as I get:
==32762== 4,928 bytes in 88 blocks are definitely lost in loss record 95
of 98
==32762==    at 0x402425F: calloc (vg_replace_malloc.c:467)
==32762==    by 0x45E28E1: hb_blob_create
(in /opt/e17/lib/libharfbuzz.so.0.0.0)
==32762==    by 0x45F4F91: hb_ft_face_create
(in /opt/e17/lib/libharfbuzz.so.0.0.0)


What am I doing wrong?

Thanks,
Tom.




More information about the HarfBuzz mailing list