[MPlayer-cvslog] r35388 - trunk/input/input.c

reimar subversion at mplayerhq.hu
Sat Nov 10 13:39:45 CET 2012


Author: reimar
Date: Sat Nov 10 13:39:45 2012
New Revision: 35388

Log:
Fix memory leaks in mp_input_check_interrupt.

Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	Sat Nov 10 13:38:54 2012	(r35387)
+++ trunk/input/input.c	Sat Nov 10 13:39:45 2012	(r35388)
@@ -1914,9 +1914,11 @@ mp_input_check_interrupt(int time) {
   case MP_CMD_PLAY_TREE_STEP:
   case MP_CMD_PLAY_TREE_UP_STEP:
   case MP_CMD_PLAY_ALT_SRC_STEP:
+    mp_cmd_free(cmd);
     // The cmd will be executed when we are back in the main loop
     return 1;
   }
+  mp_cmd_free(cmd);
   // remove the cmd from the queue
   cmd = mp_input_get_cmd(time,0,0);
   mp_cmd_free(cmd);


More information about the MPlayer-cvslog mailing list