[cairo] cairo_font_face_t not freeing

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed May 3 21:54:35 UTC 2017

On Wed, 3 May 2017 13:25:51 -0400, Louis M wrote:

> Is there not a dangerous memory leak there? If for example, I have a
> function that create a Freetype font face and generate a cairo font
> face with it. Then, since the font face will never be freed, I cannot
> free the Freetype font face. If I relaunch the function multiple
> time, new Freetype font face will be created each time.

If you pass it the same FT_Face, you will get back the same

More information about the cairo mailing list