• Paul Eggert's avatar
    Avoid allocating a Lisp_Save_Value in ftfont.c · 888bf987
    Paul Eggert authored
    * src/ftfont.c (struct ftfont_cache_data): New member face_refcount.
    (ftfont_lookup_cache): Clear it when initializing.
    Use make_mint_ptr, since this typically avoids the need to
    allocate a Lisp_Save_Value as refcount is now stored elsewhere.
    (ftfont_open2, ftfont_close): Manipulate the reference
    count in the struct, not in the save object.
    888bf987
ftfont.c 72.9 KB