summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-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 )