Commit cdfc3aa4 authored by Michal's avatar Michal Committed by Albert Astals Cid

fix leaked mmap

parent 4d0f6977
Pipeline #265804 passed with stage
in 6 minutes and 13 seconds
......@@ -330,7 +330,8 @@ static bool _ft_new_face(FT_Library lib, const char *filename, char *font_data,
l->font_face = cairo_ft_font_face_create_for_ft_face(tmpl.face, FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP);
if (cairo_font_face_set_user_data(l->font_face, &_ft_cairo_key, l, _ft_done_face)) {
l->bytes = nullptr;
if (l->fd == -1)
l->bytes = nullptr;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment