]> git.eshelyaron.com Git - emacs.git/commit
Avoid allocating a Lisp_Save_Value in ftfont.c
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jun 2018 22:59:08 +0000 (15:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jun 2018 00:13:39 +0000 (17:13 -0700)
commit888bf9877d466dbb65aec821bede9ac49e12798f
tree0791497a3092ada47413b8bf4cbc5825b6f77d3c
parent3f0a8a2e14669cf4a1f56e97f8b1299fced79796
Avoid allocating a Lisp_Save_Value in ftfont.c

* 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.
src/ftfont.c