]> git.sesse.net Git - vlc/blobdiff - modules/demux/ts.c
Create a function to free the memory allocated when calling
[vlc] / modules / demux / ts.c
index 180507ad5deb3dabfd3b091a168e22cdbcb94c63..a2b4ef3b01af4d03e1b90042606a984fc341c5f0 100644 (file)
@@ -843,7 +843,7 @@ static void Close( vlc_object_t *p_this )
     {
         vlc_value_t val;
         val.p_list = p_sys->p_programs_list;
-        var_Change( p_demux, "programs", VLC_VAR_FREELIST, &val, NULL );
+        var_FreeList( &val, NULL );
     }
 
     /* If in dump mode, then close the file */