[MPlayer-cvslog] r24975 - trunk/mplayer.c

ulion subversion at mplayerhq.hu
Tue Nov 6 04:41:15 CET 2007


Author: ulion
Date: Tue Nov  6 04:41:15 2007
New Revision: 24975

Log:
Fix memory leak caused by after calling mp_input_get_cmd didn't free the cmd.


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Tue Nov  6 04:41:15 2007
@@ -2699,7 +2699,10 @@ if(!noconsolecontrols && !slave_mode){
 	usec_sleep(20000);
 	guiEventHandling();
 	guiGetEvent( guiReDraw,NULL );
-	if ( (cmd = mp_input_get_cmd(0,0,0)) != NULL) guiGetEvent( guiIEvent,(char *)cmd->id );
+	if ( (cmd = mp_input_get_cmd(0,0,0)) != NULL) {
+	  guiGetEvent(guiIEvent, (char *)cmd->id);
+	  mp_cmd_free(cmd);
+	}
        } 
       guiGetEvent( guiSetParameters,NULL );
       if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM )



More information about the MPlayer-cvslog mailing list