changeset 13956:5d8f11a627ae

free freetype descriptor and library and mconfig data right before exit
author iive
date Mon, 15 Nov 2004 15:29:39 +0000
parents d9bdae1d1c04
children f3dada6ab8e4
files mplayer.c
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Nov 15 15:05:12 2004 +0000
+++ b/mplayer.c	Mon Nov 15 15:29:39 2004 +0000
@@ -483,8 +483,18 @@
   vo_uninit();	// close the X11 connection (if any opened)
 #endif
 
+#ifdef HAVE_FREETYPE
+  current_module="uninit_font";
+  if (vo_font) free_font_desc(vo_font);
+  vo_font = NULL;
+  done_freetype();
+#endif
+
   current_module="exit_player";
 
+// free mplayer config
+  free(mconfig);
+
 #ifdef USE_EDL
   if(edl_records != NULL) free(edl_records); // free mem allocated for EDL
 #endif
@@ -4129,12 +4139,6 @@
   goto play_next_file;
 }
 
-#ifdef HAVE_FREETYPE
-current_module="uninit_font";
-if (vo_font) free_font_desc(vo_font);
-vo_font = NULL;
-done_freetype();
-#endif
 
 exit_player_with_rc(MSGTR_Exit_eof, 0);