]> git.eshelyaron.com Git - emacs.git/commit
Correctly allocate colors in xftfont
authorPo Lu <luangruo@yahoo.com>
Thu, 10 Feb 2022 10:43:08 +0000 (18:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 10 Feb 2022 10:45:35 +0000 (18:45 +0800)
commite16a78c44e05237b98207a7cee4b0666b7e1ac2a
tree851dcf0a3fe04ef08560a57d75bff802ca3bd7a2
parent849895d0db9c8879dedd6658f66b28b1613358ff
Correctly allocate colors in xftfont

* src/xftfont.c (struct xftface_info): New fields
`bg_allocated_p' and `fg_allocated_p'.
(xftfont_get_colors): Actually allocate colors and tell the
caller whether colors were allocated.
(xftfont_prepare_face): Set allocated fields.
(xftfont_done_face):
(xftfont_draw): Free colors that were allocated.
src/xftfont.c