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

Behdad Esfahbod behdad at behdad.org
Tue Oct 26 08:14:09 PDT 2010


On 10/26/10 05:58, Tom Hacohen wrote:
> 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:


Can you try with master?  I remember I fixed a blob leak a while ago...

behdad


> ==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.
> 
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
> 



More information about the HarfBuzz mailing list