diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2015-10-30 01:33:30 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2015-10-30 03:50:53 +0200 |
commit | ad5988af46f5ca698115140f9252882286539f72 (patch) | |
tree | 04e5367c4faed223416ae0a2ea82b3bc9ca9142e /libass/ass_fontconfig.c | |
parent | 7ff5f49e30b91f8ac3e707896ee1fed83dcca170 (diff) | |
download | libass-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_fontconfig.c')
0 files changed, 0 insertions, 0 deletions