mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
aa93810437
commit
b1f1d02ceb
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue