Commit e8eb93fd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ncurses: fix memory leak

parent 5452f363
...@@ -1555,6 +1555,7 @@ static void CycleESTrack(input_thread_t *input, const char *var) ...@@ -1555,6 +1555,7 @@ static void CycleESTrack(input_thread_t *input, const char *var)
if (++i >= count) if (++i >= count)
i = 0; i = 0;
var_SetInteger(input, var, list.p_values[i].i_int); var_SetInteger(input, var, list.p_values[i].i_int);
free(list.p_values);
} }
static void HandleCommonKey(intf_thread_t *intf, input_thread_t *input, static void HandleCommonKey(intf_thread_t *intf, input_thread_t *input,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment