[vlc-devel] commit: Fix huge memory leak in sout smem module (Christophe Courtaut )

git version control git at videolan.org
Sun Sep 20 10:41:03 CEST 2009


vlc | branch: master | Christophe Courtaut <christophe.courtaut at gmail.com> | Fri Sep 18 22:02:08 2009 +0200| [579875c04e399d3c986b2550827b71d1d1a82fdb] | committer: Rémi Denis-Courmont 

Fix huge memory leak in sout smem module

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/stream_out/smem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/smem.c b/modules/stream_out/smem.c
index dc576cf..baf9416 100644
--- a/modules/stream_out/smem.c
+++ b/modules/stream_out/smem.c
@@ -347,6 +347,7 @@ static int SendVideo( sout_stream_t *p_stream, sout_stream_id_t *id,
     p_sys->pf_video_postrender_callback( p_sys->p_video_data, p_pixels,
                                          id->format->video.i_width, id->format->video.i_height,
                                          id->format->video.i_bits_per_pixel, i_size, p_buffer->i_pts );
+    block_ChainRelease( p_buffer );
     return VLC_SUCCESS;
 }
 




More information about the vlc-devel mailing list