[vlc-commits] mkv: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sun Nov 12 11:49:42 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Nov 12 11:44:11 2017 +0100| [10f825a258cc8b33c8e442592fe2555be572c866] | committer: Thomas Guillem
mkv: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10f825a258cc8b33c8e442592fe2555be572c866
---
modules/demux/mkv/mkv.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index b7305d34ad..554c660423 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -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] );
More information about the vlc-commits
mailing list