diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-11-13 12:02:21 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-11-13 12:04:15 -0800 |
commit | 04ac097f34d887e1ae8dea1e884118728e931c7a (patch) | |
tree | 89aed10cf39e4c9a3eb450961a305474d7077274 /lib | |
parent | 4c4b520520cf6b99ce7128331a4e108e58095705 (diff) | |
download | emacs-04ac097f34d887e1ae8dea1e884118728e931c7a.tar.gz |
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions