[MPlayer-cvslog] r35399 - trunk/libmenu/menu_console.c

reimar subversion at mplayerhq.hu
Sat Nov 10 14:31:32 CET 2012


Author: reimar
Date: Sat Nov 10 14:31:32 2012
New Revision: 35399

Log:
Do not leak memory while processing command.

Modified:
   trunk/libmenu/menu_console.c

Modified: trunk/libmenu/menu_console.c
==============================================================================
--- trunk/libmenu/menu_console.c	Sat Nov 10 14:29:36 2012	(r35398)
+++ trunk/libmenu/menu_console.c	Sat Nov 10 14:31:32 2012	(r35399)
@@ -421,7 +421,9 @@ static void read_cmd(menu_t* menu,int cm
 	break;
       default: // Send the other commands to mplayer
 	mp_input_queue_cmd(c);
+	c = NULL;
       }
+      if (c) mp_cmd_free(c);
     }
     return;
   }


More information about the MPlayer-cvslog mailing list