[vlc-commits] demux: vobsub: remove useless alloc

Francois Cartegnie git at videolan.org
Tue Oct 8 19:15:06 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct  8 14:22:06 2019 +0200| [611c296b12311f83531b76aa9ca2d4720290618f] | committer: Francois Cartegnie

demux: vobsub: remove useless alloc

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

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

diff --git a/modules/demux/vobsub.c b/modules/demux/vobsub.c
index 9ef5e70d36..d995066c98 100644
--- a/modules/demux/vobsub.c
+++ b/modules/demux/vobsub.c
@@ -529,7 +529,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
             memset( current_tk, 0, sizeof( vobsub_track_t ) );
             current_tk->i_current_subtitle = 0;
             current_tk->i_subtitles = 0;
-            current_tk->p_subtitles = xmalloc( sizeof( subtitle_t ) );
+            current_tk->p_subtitles = NULL;
             current_tk->i_track_id = i_track_id;
             current_tk->i_delay = (vlc_tick_t)0;
 



More information about the vlc-commits mailing list