[vlc-commits] subsdec: Fix leak
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Tue Jul 28 16:01:59 CEST 2015
    
    
  
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jul 21 16:58:49 2015 +0200| [8efa874d35b1e160c4e970e67aad1599c9021f77] | committer: Jean-Baptiste Kempf
subsdec: Fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8efa874d35b1e160c4e970e67aad1599c9021f77
---
 modules/codec/subsdec.c |    2 ++
 1 file changed, 2 insertions(+)
diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 73389ab..3d5fb7e 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -1025,6 +1025,8 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
             psz_subtitle++;
         }
     }
+    while ( p_stack )
+        PopStyle( &p_stack );
 
     return p_first_segment;
 
    
    
More information about the vlc-commits
mailing list