mirror of
https://github.com/mpv-player/mpv
synced 2025-01-23 16:13:39 +00:00
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:
parent
5e8ea6f4f1
commit
25d334c477
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user