Commit 8ede742f authored by Laurent Aimar's avatar Laurent Aimar

Fixed a picture memleak in clone.

parent 65c1e26f
......@@ -181,10 +181,14 @@ static int Filter( video_splitter_t *p_splitter,
picture_t *pp_dst[], picture_t *p_src )
{
if( video_splitter_NewPicture( p_splitter, pp_dst ) )
{
picture_Release( p_src );
return VLC_EGENERIC;
}
for( int i = 0; i < p_splitter->i_output; i++ )
picture_Copy( pp_dst[i], p_src );
picture_Release( p_src );
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment