[vlc-devel] commit: Fix memleak (should fix #1081) ( Rémi Duraffort )

git version control git at videolan.org
Sun Aug 24 21:14:35 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Aug 24 20:56:56 2008 +0200| [4774dc6c9f7b04b40f90e4edc9ad1a1f8d256f1d] | committer: Rémi Duraffort 

Fix memleak (should fix #1081)

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

 modules/demux/mpeg/mpga.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mpeg/mpga.c b/modules/demux/mpeg/mpga.c
index 3e45ce5..70d5c88 100644
--- a/modules/demux/mpeg/mpga.c
+++ b/modules/demux/mpeg/mpga.c
@@ -331,6 +331,7 @@ static void Close( vlc_object_t * p_this )
 
     DESTROY_PACKETIZER( p_sys->p_packetizer );
     if( p_sys->p_block_out ) block_Release( p_sys->p_block_out );
+    if( p_sys->p_block_in ) block_Release( p_sys->p_block_in );
 
     free( p_sys );
 }




More information about the vlc-devel mailing list