aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-06 03:41:15 +0000
committerGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-06 03:41:15 +0000
commitb1f1d02ceb2417577b2781379d68a16b97003ffe (patch)
treee472fad71442c4a72f2e9cc10373128b974fa3fe
parentaa938104374dd68c5ec0f4f741acc27e46a5114e (diff)
Fix memory leak caused by after calling mp_input_get_cmd didn't free the cmd.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24975 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 0c741c8d07..9c0c925db6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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 )