changeset 36557:7bfdbba6f2f7

menu_param: fix memleak on menu click.
author reimar
date Sun, 19 Jan 2014 22:24:49 +0000
parents 0803f123d737
children 33a385204875
files libmenu/menu_param.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_param.c	Sun Jan 19 22:24:47 2014 +0000
+++ b/libmenu/menu_param.c	Sun Jan 19 22:24:49 2014 +0000
@@ -238,6 +238,7 @@
       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;
     }