]> git.wh0rd.org Git - fontconfig.git/commit
[fcxml] Don't allocate attr array if there are no attributes
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 12 Mar 2009 13:27:20 +0000 (09:27 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 12 Mar 2009 17:14:37 +0000 (13:14 -0400)
commit532d8a1dbc2baebc2603d091952a640b954b6f71
tree110e707b6bc29cd45893ee7adafddbae08bf24c4
parent3ed70071cdc8a03229c009f5565c23948264a5e0
[fcxml] Don't allocate attr array if there are no attributes

Reduces number of mallocs from FcConfigSaveAttr() in my small test
from over 900 down to 157.
src/fcxml.c