[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 11:55:21 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sat Jul  4 10:25:25 2009 +0200| [3080869d7a89f69c5c38f24d33bffca338a0d755] | committer: Rémi Duraffort 

rtmp: fix a memory leak (we must release the fifo)
(cherry picked from commit 4c74cf3378523095e4cb90f29fcdff5bd546d857)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 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