[vlc-devel] commit: rtmp: fix a memory leak (we must release the fifo) ( Rémi Duraffort )

git version control git at videolan.org
Sat Jul 4 10:31:53 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul  4 10:25:25 2009 +0200| [4c74cf3378523095e4cb90f29fcdff5bd546d857] | committer: Rémi Duraffort 

rtmp: fix a memory leak (we must release the fifo)

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

 modules/access/rtmp/access.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/rtmp/access.c b/modules/access/rtmp/access.c
index a8613db..b32dace 100644
--- a/modules/access/rtmp/access.c
+++ b/modules/access/rtmp/access.c
@@ -239,6 +239,9 @@ error2:
     vlc_cond_destroy( &p_sys->p_thread->wait );
     vlc_mutex_destroy( &p_sys->p_thread->lock );
 
+    block_FifoRelease( p_sys->p_thread->p_fifo_input );
+    block_FifoRelease( p_sys->p_thread->p_empty_blocks );
+
     free( p_sys->p_thread->psz_application );
     free( p_sys->p_thread->psz_media );
 




More information about the vlc-devel mailing list