[vlc-devel] commit: Fix memory leak (CID#206) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 5 15:53:34 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct  5 16:53:21 2008 +0300| [bd587fbb5ac18f1d8fafc216b2ff69ab433538e2] | committer: Rémi Denis-Courmont 

Fix memory leak (CID#206)

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

 modules/access/fake.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/fake.c b/modules/access/fake.c
index b97c208..03ac7b1 100644
--- a/modules/access/fake.c
+++ b/modules/access/fake.c
@@ -228,7 +228,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 static int Demux( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
-    block_t *p_block = block_New( p_demux, 1 );
 
     if ( !p_sys->i_last_pts )
     {
@@ -244,6 +243,7 @@ static int Demux( demux_t *p_demux )
         mwait( p_sys->i_last_pts );
     }
 
+    block_t *p_block = block_New( p_demux, 1 );
     p_block->i_flags |= BLOCK_FLAG_TYPE_I;
     p_block->i_dts = p_block->i_pts = p_sys->i_last_pts;
 




More information about the vlc-devel mailing list