[vlc-commits] vobsub: fix memory leak

Hannes Domani git at videolan.org
Sat Jan 16 17:35:40 CET 2016


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Sat Jan 16 14:01:40 2016 +0100| [316b5c5a08617b0746464026febcbe88b7b2be69] | committer: Jean-Baptiste Kempf

vobsub: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit d11e004ceb785e96b6115114455fd132b1728733)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=316b5c5a08617b0746464026febcbe88b7b2be69
---

 modules/demux/vobsub.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/vobsub.c b/modules/demux/vobsub.c
index 5de3513..3357be6 100644
--- a/modules/demux/vobsub.c
+++ b/modules/demux/vobsub.c
@@ -409,6 +409,8 @@ static int Demux( demux_t *p_demux )
             /* demux this block */
             DemuxVobSub( p_demux, p_block );
 
+            block_Release( p_block );
+
             tk.i_current_subtitle++;
         }
 #undef tk



More information about the vlc-commits mailing list