Mercurial > mplayer.hg
comparison mplayer.c @ 16036:ab9b25d60934
Fix few memleaks on exit.
2 lines inspired by Timothy Lee <timothy.lee <at> siriushk.com> patch
author | iive |
---|---|
date | Thu, 21 Jul 2005 14:03:52 +0000 |
parents | 7742302e793d |
children | 0ccf19820216 |
comparison
equal
deleted
inserted
replaced
16035:27ac0b7a1caf | 16036:ab9b25d60934 |
---|---|
497 current_module="uninit_font"; | 497 current_module="uninit_font"; |
498 if (vo_font) free_font_desc(vo_font); | 498 if (vo_font) free_font_desc(vo_font); |
499 vo_font = NULL; | 499 vo_font = NULL; |
500 done_freetype(); | 500 done_freetype(); |
501 #endif | 501 #endif |
502 free_osd_list(); | |
502 | 503 |
503 current_module="exit_player"; | 504 current_module="exit_player"; |
504 | 505 |
505 // free mplayer config | 506 // free mplayer config |
506 free(mconfig); | 507 if(mconfig) |
508 m_config_free(mconfig); | |
509 | |
510 if(playtree) | |
511 play_tree_free(playtree, 1); | |
512 | |
507 | 513 |
508 #ifdef USE_EDL | 514 #ifdef USE_EDL |
509 if(edl_records != NULL) free(edl_records); // free mem allocated for EDL | 515 if(edl_records != NULL) free(edl_records); // free mem allocated for EDL |
510 #endif | 516 #endif |
511 if(how) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_ExitingHow,mp_gettext(how)); | 517 if(how) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_ExitingHow,mp_gettext(how)); |