[MPlayer-cvslog] r36653 - trunk/libmenu/menu_param.c

reimar subversion at mplayerhq.hu
Sun Jan 19 23:24:49 CET 2014


Author: reimar
Date: Sun Jan 19 23:24:49 2014
New Revision: 36653

Log:
menu_param: fix memleak on menu click.

Modified:
   trunk/libmenu/menu_param.c

Modified: trunk/libmenu/menu_param.c
==============================================================================
--- trunk/libmenu/menu_param.c	Sun Jan 19 23:24:47 2014	(r36652)
+++ trunk/libmenu/menu_param.c	Sun Jan 19 23:24:49 2014	(r36653)
@@ -238,6 +238,7 @@ static void read_cmd(menu_t* menu,int cm
       char* txt = malloc(10 + strlen(e->menu) + 1);
       sprintf(txt,"set_menu %s",e->menu);
       c = mp_input_parse_cmd(txt);
+      free(txt);
       if(c) mp_input_queue_cmd(c);
       return;
     }


More information about the MPlayer-cvslog mailing list