Commit d8443859 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

asf: fix memory leaks

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent cf7ca5fe
......@@ -282,6 +282,7 @@ static void Close( vlc_object_t * p_this )
asf_track_t *track = (asf_track_t *)vlc_array_item_at_index( p_sys->p_tracks, i );
free( track->p_extra );
es_format_Clean( &track->fmt );
free( track );
}
vlc_array_clear( p_sys->p_tracks );
......@@ -616,6 +617,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
}
default:
msg_Err(p_mux, "unhandled track type" );
free( tk );
return VLC_EGENERIC;
}
......
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