changeset 35305:caa2267e0cc6

Do not leak memory while processing command.
author reimar
date Sat, 10 Nov 2012 13:31:32 +0000
parents d29d116c0818
children f30c2707e168
files libmenu/menu_console.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_console.c	Sat Nov 10 13:29:36 2012 +0000
+++ b/libmenu/menu_console.c	Sat Nov 10 13:31:32 2012 +0000
@@ -421,7 +421,9 @@
 	break;
       default: // Send the other commands to mplayer
 	mp_input_queue_cmd(c);
+	c = NULL;
       }
+      if (c) mp_cmd_free(c);
     }
     return;
   }