Fix huge memory leak in sout smem module
authorChristophe Courtaut <christophe.courtaut@gmail.com>
Fri, 18 Sep 2009 20:02:08 +0000 (22:02 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 20 Sep 2009 08:40:46 +0000 (11:40 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/stream_out/smem.c

index dc576cf..baf9416 100644 (file)
@@ -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;
 }