[MPlayer-cvslog] r36750 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Sun Jan 26 18:01:14 CET 2014
Author: ib
Date: Sun Jan 26 18:01:14 2014
New Revision: 36750
Log:
Revise non-FreeType part of mplayerLoadFont().
Fix memory leaks.
Free return value of get_path() and old font_name.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Sun Jan 26 17:57:18 2014 (r36749)
+++ trunk/gui/interface.c Sun Jan 26 18:01:14 2014 (r36750)
@@ -1095,7 +1095,10 @@ void mplayerLoadFont(void)
if (!vo_font)
gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_CantLoadFont, font_name);
} else {
- font_name = gstrdup(get_path("font/font.desc"));
+ char *fname = get_path("font/font.desc");
+
+ setdup(&font_name, fname);
+ free(fname);
vo_font = read_font_desc(font_name, font_factor, 0);
if (!vo_font) {
More information about the MPlayer-cvslog
mailing list