[vlc-commits] flac:: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 19:00:07 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:44:43 2017 +0100| [3329b7ce85b2ec3c7dbb1f9044ec2460eac64024] | committer: Thomas Guillem
flac:: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3329b7ce85b2ec3c7dbb1f9044ec2460eac64024
---
modules/demux/flac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index 74769e7df4..33de6aacbc 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -548,7 +548,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( p_sys->i_attachments <= 0 )
return VLC_EGENERIC;
- *ppp_attach = malloc( sizeof(input_attachment_t*) * p_sys->i_attachments );
+ *ppp_attach = vlc_alloc( p_sys->i_attachments, sizeof(input_attachment_t*) );
if( !*ppp_attach )
return VLC_EGENERIC;
*pi_int = p_sys->i_attachments;
@@ -578,7 +578,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_EGENERIC;
}
- p_title->seekpoint = malloc( p_sys->i_title_seekpoints * sizeof(seekpoint_t*) );
+ p_title->seekpoint = vlc_alloc( p_sys->i_title_seekpoints, sizeof(seekpoint_t*) );
if(!p_title->seekpoint)
{
vlc_input_title_Delete(p_title);
More information about the vlc-commits
mailing list