[vlc-commits] sid: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 19:00:12 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:46:54 2017 +0100| [565cef4bbb199a07d4b12596b4a7f0dd191cb472] | committer: Thomas Guillem

sid: use vlc_alloc helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=565cef4bbb199a07d4b12596b4a7f0dd191cb472
---

 modules/demux/sid.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/sid.cpp b/modules/demux/sid.cpp
index 9d768ee350..12a874f6a3 100644
--- a/modules/demux/sid.cpp
+++ b/modules/demux/sid.cpp
@@ -259,7 +259,7 @@ static int Control (demux_t *demux, int query, va_list args)
                 int *pi_int = va_arg( args, int* );
 
                 *pi_int = sys->tuneInfo.songs;
-                *ppp_title = (input_title_t**) malloc( sizeof (input_title_t*) * sys->tuneInfo.songs);
+                *ppp_title = (input_title_t**) vlc_alloc( sys->tuneInfo.songs, sizeof (input_title_t*));
 
                 for( int i = 0; i < sys->tuneInfo.songs; i++ ) {
                     (*ppp_title)[i] = vlc_input_title_New();



More information about the vlc-commits mailing list