[MPlayer-cvslog] CVS: main/libvo font_load_ft.c,1.18,1.19
Alban Bedel CVS
syncmail at mplayerhq.hu
Sun Mar 26 21:10:46 CEST 2006
CVS change done by Alban Bedel CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv28656/libvo
Modified Files:
font_load_ft.c
Log Message:
NEVER assign static strings to string command line options.
Fix crash on exit with fontconfig.
Index: font_load_ft.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/font_load_ft.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- font_load_ft.c 24 Mar 2006 02:31:29 -0000 1.18
+++ font_load_ft.c 26 Mar 2006 19:10:43 -0000 1.19
@@ -1147,7 +1147,7 @@
if (font_fontconfig)
{
if (!font_name)
- font_name = "sans-serif";
+ font_name = strdup("sans-serif");
FcInit();
fc_pattern = FcNameParse(font_name);
FcConfigSubstitute(0, fc_pattern, FcMatchPattern);
More information about the MPlayer-cvslog
mailing list