[vlc-commits] kate: fix memory leak (cid #1048911)

Rémi Duraffort git at videolan.org
Wed Dec 11 18:59:46 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at 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;
     }



More information about the vlc-commits mailing list