summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-10-30 01:33:30 +0200
committerOleg Oshmyan <chortos@inbox.lv>2015-10-30 03:50:53 +0200
commitad5988af46f5ca698115140f9252882286539f72 (patch)
tree04e5367c4faed223416ae0a2ea82b3bc9ca9142e /libass/ass_fontselect.c
parent7ff5f49e30b91f8ac3e707896ee1fed83dcca170 (diff)
downloadlibass-ad5988af46f5ca698115140f9252882286539f72.tar.bz2
libass-ad5988af46f5ca698115140f9252882286539f72.tar.xz
directwrite: improve error handling
* Check malloc and calloc return values. * Abort if a name can't be fetched, rather than supply a NULL string to fontselect causing it to crash. * Make sure to free all allocated memory. * Always check FAILED(hr) before using the value of any output argument returned by DirectWrite, because it is not clear whether they are guaranteed to have correct values in case of error.
Diffstat (limited to 'libass/ass_fontselect.c')
0 files changed, 0 insertions, 0 deletions