]> git.wh0rd.org Git - fontconfig.git/commit
[fcstr,fcxml] Don't copy FcStrBuf contents when we would free it soon
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 11 Mar 2009 18:07:15 +0000 (14:07 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 12 Mar 2009 17:14:37 +0000 (13:14 -0400)
commit3ed70071cdc8a03229c009f5565c23948264a5e0
treee0f2c5e62406a7c480912faf8e0e2744ffa2df09
parent7d35c11b3304659d8be43913c9b125f2b5b38516
[fcstr,fcxml] Don't copy FcStrBuf contents when we would free it soon

We can simply NUL-terminate the buffer and use it.  Reduces number of
mallocs called from FcStrBufDone in my small test from 631 down to 66.
src/fcint.h
src/fcstr.c
src/fcxml.c