# HG changeset patch # User albeu # Date 1143400243 0 # Node ID f35cfd56c800695d73b7d8125a3dc430495e262d # Parent 7ba686737423b30b8d18111352acc1c5f2c763a8 NEVER assign static strings to string command line options. Fix crash on exit with fontconfig. diff -r 7ba686737423 -r f35cfd56c800 libvo/font_load_ft.c --- a/libvo/font_load_ft.c Sun Mar 26 14:23:22 2006 +0000 +++ b/libvo/font_load_ft.c Sun Mar 26 19:10:43 2006 +0000 @@ -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);