[vlc-commits] ncurses: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:11:29 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 10 11:04:42 2018 +0300| [e8eb93fd9639d3ccbacfd954b92ca77fb3775e0d] | committer: Rémi Denis-Courmont
ncurses: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8eb93fd9639d3ccbacfd954b92ca77fb3775e0d
---
modules/gui/ncurses.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 3ed37493da..f73e54fd14 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1555,6 +1555,7 @@ static void CycleESTrack(input_thread_t *input, const char *var)
if (++i >= count)
i = 0;
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,
More information about the vlc-commits
mailing list