From 25d334c477698b024a752e65430a9eb7bd97664d Mon Sep 17 00:00:00 2001 From: iive Date: Thu, 21 Jul 2005 14:03:52 +0000 Subject: Fix few memleaks on exit. 2 lines inspired by Timothy Lee siriushk.com> patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16037 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mplayer.c') 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 -- cgit v1.2.3