Commit 1c15d4ad authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a (really) small memleak (even if i_count is 0, some memory is allocated

for the strucure).
parent 2eabe22e
......@@ -1241,7 +1241,10 @@ libvlc_track_description_t *
var_Change( p_input, psz_variable, VLC_VAR_GETLIST, &val_list, &text_list);
if( val_list.p_list->i_count <= 0 ) /* no tracks */
{
var_Change( p_input, psz_variable, VLC_VAR_FREELIST, &val_list, &text_list);
return NULL;
}
libvlc_track_description_t *p_track_description, *p_actual, *p_previous;
p_track_description = ( libvlc_track_description_t * )
......
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