diff options
author | 2004-10-13 16:22:59 +0000 | |
---|---|---|
committer | 2004-10-13 16:22:59 +0000 | |
commit | 95efc9ce4778b70c7d5bf49606e364150be0af9e (patch) | |
tree | f5a70cd299c006aa0acaa931945eed8fa51319a5 /libvo | |
parent | 30f8042aeaabebc1a58404ae928a0ab1933f6af1 (diff) |
fixed small memleaks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13633 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/font_load_ft.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index dd86172e2a..1e88454ca5 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -882,10 +882,12 @@ void free_font_desc(font_desc_t *desc) if (desc->pic_a[i]) { if (desc->pic_a[i]->bmp) free(desc->pic_a[i]->bmp); if (desc->pic_a[i]->pal) free(desc->pic_a[i]->pal); + free (desc->pic_a[i]); } if (desc->pic_b[i]) { if (desc->pic_b[i]->bmp) free(desc->pic_b[i]->bmp); if (desc->pic_b[i]->pal) free(desc->pic_b[i]->pal); + free (desc->pic_b[i]); } } @@ -909,7 +911,9 @@ static int load_sub_face(char *name, FT_Face *face) if (name) err = FT_New_Face(library, name, 0, face); if (err) { - err = FT_New_Face(library, get_path("subfont.ttf"), 0, face); + char *font_file = get_path("subfont.ttf"); + err = FT_New_Face(library, font_file, 0, face); + free(font_file); if (err) { err = FT_New_Face(library, MPLAYER_DATADIR "/subfont.ttf", 0, face); if (err) { |