[vlc-commits] dvdread: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 18:59:43 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:36:36 2017 +0100| [23590f33f003c34fa2f8c90180fae7b544bcec2b] | committer: Thomas Guillem
dvdread: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23590f33f003c34fa2f8c90180fae7b544bcec2b
---
modules/access/dvdread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 9982ab76ba..c395bd229c 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -401,7 +401,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Duplicate title infos */
*pi_int = p_sys->i_titles;
- *ppp_title = malloc( p_sys->i_titles * sizeof(input_title_t *) );
+ *ppp_title = vlc_alloc( p_sys->i_titles, sizeof(input_title_t *) );
for( i = 0; i < p_sys->i_titles; i++ )
{
(*ppp_title)[i] = vlc_input_title_Duplicate(p_sys->titles[i]);
More information about the vlc-commits
mailing list