rtmp: fix a memory leak (we must release the fifo)
authorRémi Duraffort <ivoire@videolan.org>
Sat, 4 Jul 2009 08:25:25 +0000 (10:25 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 4 Jul 2009 08:25:25 +0000 (10:25 +0200)
modules/access/rtmp/access.c

index a8613db..b32dace 100644 (file)
@@ -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 );