Don't dereference NULL upon failed malloc and realloc.
authorJim Meyering <jim@meyering.net>
Tue, 23 Jun 2009 06:49:20 +0000 (06:49 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 23 Jun 2009 06:49:20 +0000 (06:49 +0000)
commitc6da7cd2b63cc9094d690b74875bf8609b5c0107
tree4c6731024ab0f50692ceb0b848492a3b77b1bdcf
parentf5f20f6c6718e08c1c8c9140466c7eb5811fe467
Don't dereference NULL upon failed malloc and realloc.

* src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
and xrealloc (not malloc and realloc), so subsequent heap pointer
dereferences are guaranteed to be valid.
src/ChangeLog
src/ftfont.c