changeset 36656:b8ade3dcf9e9

Revise non-FreeType part of mplayerLoadFont(). Use setdup() which does the same.
author ib
date Sun, 26 Jan 2014 17:04:54 +0000
parents 31bc4f268ac2
children 85ae74e2e537
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Sun Jan 26 17:02:28 2014 +0000
+++ b/gui/interface.c	Sun Jan 26 17:04:54 2014 +0000
@@ -1102,8 +1102,7 @@
         vo_font = read_font_desc(font_name, font_factor, 0);
 
         if (!vo_font) {
-            nfree(font_name);
-            font_name = gstrdup(MPLAYER_DATADIR "/font/font.desc");
+            setdup(&font_name, MPLAYER_DATADIR "/font/font.desc");
             vo_font   = read_font_desc(font_name, font_factor, 0);
         }
     }