freetype: Fix a possible buffer corruption
Memory associated with a FcPattern is freed when the pattern is destroyed, so copying the font filename needs to be done before the call to FcPatternDestroy. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Modified-by: Rafaël Carré <funman@videolan.org> (simplify return) Signed-off-by: Rafaël Carré <funman@videolan.org> (cherry picked from commit ae3fd8273b0a16b6ab7f17e119b5d1beb79f4a14) Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment