vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Feb 26 14:34:25 2018 +0100| [87c3db495293b1c5e1f4cf764d74e63add0bb2a8] | committer: Francois Cartegnie
demux: webvtt: release memstream empty alloc > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87c3db495293b1c5e1f4cf764d74e63add0bb2a8 --- modules/demux/webvtt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/demux/webvtt.c b/modules/demux/webvtt.c index a339f29406..bbb822722a 100644 --- a/modules/demux/webvtt.c +++ b/modules/demux/webvtt.c @@ -151,6 +151,11 @@ static void memstream_Grab( struct vlc_memstream *ms, void **pp, size_t *pi ) { if( ms->stream != NULL && vlc_memstream_close( ms ) == VLC_SUCCESS ) { + if( ms->length == 0 ) + { + free( ms->ptr ); + ms->ptr = NULL; + } *pp = ms->ptr; *pi = ms->length; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
