[cairo] cairo_font_face_t not freeing

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed May 3 01:10:50 UTC 2017

On Tue, 2 May 2017 20:46:53 -0400, Louis M wrote:

> Ok, just to be sure, I tried the the "cairo_font_face_set_user_data"
> functionality that can set a destructor to the font face. Here the
> code:
> ...
>     cairo_font_face_t * font_face = cairo_toy_font_face_create("",
>                             CAIRO_FONT_SLANT_NORMAL,
>                             CAIRO_FONT_WEIGHT_NORMAL);
> ...
> The "font_destroy" is never launch. But if I put two
> "cairo_font_face_destroy" instead of one, I see the "Font face freed"
> message.

Just to be sure, can you check it with a nonempty font spec? Because
the empty font spec represents the default font, which might be a
special case.

> Do you think that I should fill a bug report.

I’m hoping somebody who knows more about the insides of Cairo will
chime in at this point. :)

More information about the cairo mailing list