summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-21 14:03:52 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-21 14:03:52 +0000
commit25d334c477698b024a752e65430a9eb7bd97664d (patch)
treeaa1cde942f49d6e99febe00d3b88f9e1e6ef0bf4 /mplayer.c
parent5e8ea6f4f1cee08446e69d668634b0388bbb1138 (diff)
downloadmpv-25d334c477698b024a752e65430a9eb7bd97664d.tar.bz2
mpv-25d334c477698b024a752e65430a9eb7bd97664d.tar.xz
Fix few memleaks on exit.
2 lines inspired by Timothy Lee <timothy.lee <at> siriushk.com> patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16037 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index a136314a0b..d50dc08593 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -499,11 +499,17 @@ static void exit_player_with_rc(char* how, int rc){
vo_font = NULL;
done_freetype();
#endif
+ free_osd_list();
current_module="exit_player";
// free mplayer config
- free(mconfig);
+ if(mconfig)
+ m_config_free(mconfig);
+
+ if(playtree)
+ play_tree_free(playtree, 1);
+
#ifdef USE_EDL
if(edl_records != NULL) free(edl_records); // free mem allocated for EDL