]> git.sesse.net Git - vlc/blobdiff - modules/gui/ncurses.c
Create a function to free the memory allocated when calling
[vlc] / modules / gui / ncurses.c
index d2f8ec8d7f57fd9f8e953fd4ee7b2f969907f6a8..ece460221f4c98407cdc2f29ecd1c4e2bbaf7433 100644 (file)
@@ -1559,7 +1559,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
                 {
                     mvnprintw( y++, 0, COLS, _(" Title    : %d/%d"), val.i_int, val_list.p_list->i_count );
                 }
-                var_Change( p_input, "title", VLC_VAR_FREELIST, &val_list, NULL );
+                var_FreeList( &val_list, NULL );
             }
 
             /* Chapter */
@@ -1570,7 +1570,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
                 {
                     mvnprintw( y++, 0, COLS, _(" Chapter  : %d/%d"), val.i_int, val_list.p_list->i_count );
                 }
-                var_Change( p_input, "chapter", VLC_VAR_FREELIST, &val_list, NULL );
+                var_FreeList( &val_list, NULL );
             }
         }
         else