vlc | branch: master | Rémi Duraffort <ivo...@videolan.org> | Wed Dec 11 
18:54:18 2013 +0100| [965ea5817fbd2d1cd335c731e1a5f30c734dac19] | committer: 
Rémi Duraffort

kate: fix memory leak (cid #1048911)

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

 modules/codec/kate.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 1ce6fba..89124d4 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -1280,6 +1280,8 @@ static subpicture_t *SetupSimpleKateSPU( decoder_t 
*p_dec, subpicture_t *p_spu,
     if( !p_spu->p_region )
     {
         msg_Err( p_dec, "cannot allocate SPU region" );
+        if( p_bitmap_region )
+            subpicture_region_Delete( p_bitmap_region );
         decoder_DeleteSubpicture( p_dec, p_spu );
         return NULL;
     }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to