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
This commit is contained in:
iive 2005-07-21 14:03:52 +00:00
parent 5e8ea6f4f1
commit 25d334c477
1 changed files with 7 additions and 1 deletions

View File

@ -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