Commit 2aead1e8 authored by Thomas Guillem's avatar Thomas Guillem Committed by Rémi Denis-Courmont

mkv: use vlc_alloc helper

parent 37f3f80b
......@@ -371,7 +371,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int *pi_int = va_arg( args, int* );
*pi_int = p_sys->titles.size();
*ppp_title = static_cast<input_title_t**>( malloc( sizeof( input_title_t* ) * p_sys->titles.size() ) );
*ppp_title = static_cast<input_title_t**>( vlc_alloc( p_sys->titles.size(), sizeof( input_title_t* ) ) );
for( size_t i = 0; i < p_sys->titles.size(); i++ )
(*ppp_title)[i] = vlc_input_title_Duplicate( p_sys->titles[i] );
......
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