[vlc-commits] ncurses: fix leak

Rémi Denis-Courmont git at videolan.org
Sun Jun 10 12:14:34 CEST 2018


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 10 13:12:48 2018 +0300| [dd571d3c4a3f3fd4596a5dcdb05af66ab75bb244] | committer: Rémi Denis-Courmont

ncurses: fix leak

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=dd571d3c4a3f3fd4596a5dcdb05af66ab75bb244
---

 modules/gui/ncurses.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index a78cf2b197..35327daded 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1546,6 +1546,7 @@ static void CycleESTrack(input_thread_t *input, const char *var)
     if (++i >= list->i_count)
         i = 0;
     var_SetInteger(input, var, list->p_values[i].i_int);
+    var_FreeList(&val, NULL);
 }
 
 static void HandleCommonKey(intf_thread_t *intf, input_thread_t *input,



More information about the vlc-commits mailing list