changeset 35294:a87b3429d9a9

Fix memory leaks in mp_input_check_interrupt.
author reimar
date Sat, 10 Nov 2012 12:39:45 +0000
parents b3a1fde4b842
children 7505733df2b4
files input/input.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Nov 10 12:38:54 2012 +0000
+++ b/input/input.c	Sat Nov 10 12:39:45 2012 +0000
@@ -1914,9 +1914,11 @@
   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);