]> git.eshelyaron.com Git - emacs.git/commit
Spruce up ftfont.c memory allocation
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Nov 2015 20:02:21 +0000 (12:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Nov 2015 20:04:15 +0000 (12:04 -0800)
commit04ac097f34d887e1ae8dea1e884118728e931c7a
tree89aed10cf39e4c9a3eb450961a305474d7077274
parent4c4b520520cf6b99ce7128331a4e108e58095705
Spruce up ftfont.c memory allocation

* src/ftfont.c (setup_otf_gstring):
Avoid O(N**2) behavior when reallocating.
(ftfont_shape_by_flt): Prefer xpalloc to xrealloc when
reallocating buffers; this simplifies the code.  Do not trust
mflt_run to leave the output areas unchanged on failure, as
this isn’t part of its interface spec.
src/ftfont.c