diff options
author | Oneric <oneric@oneric.stub> | 2021-03-26 17:49:05 +0100 |
---|---|---|
committer | Oneric <oneric@oneric.stub> | 2021-04-22 23:56:34 +0200 |
commit | 006c46b5a0eee4d410b87f20b9c435dd252a7109 (patch) | |
tree | 9c1bc56a83b17dd95943953df41989ba11657bde /libass/ass.h | |
parent | 8701c535d63551b6d42d396c106e844d5b0f4abd (diff) | |
download | libass-006c46b5a0eee4d410b87f20b9c435dd252a7109.tar.bz2 libass-006c46b5a0eee4d410b87f20b9c435dd252a7109.tar.xz |
ass.h: fix ass_clear_fonts documentation
As the function only takes a library handle it is imposssible to adjust
it to be safe to call otherwise. FT_Done_Face needs to be called before
the font data can be freed.
Luckily it seems barely anyone even used this (mpv, ffmpeg, VLC and
Aegisub don't)
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h index 944aa47..549a108 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -698,6 +698,8 @@ void ass_add_font(ASS_Library *library, const char *name, const char *data, /** * \brief Remove all fonts stored in an ass_library object. + * This can only be called safely if all ASS_Track and ASS_Renderer instances + * associated with the library handle have been released first. * \param library library handle */ void ass_clear_fonts(ASS_Library *library); |