changeset 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 27ac0b7a1caf
children 1cf21d852747
files mplayer.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Jul 21 13:06:34 2005 +0000
+++ b/mplayer.c	Thu Jul 21 14:03:52 2005 +0000
@@ -499,11 +499,17 @@
   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