Commit 82e52ea8 authored by Rafaël Carré's avatar Rafaël Carré

Fix memory leak in mosaic bridge

parent 4cc4c675
......@@ -483,13 +483,14 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
if ( p_sys->p_decoder != NULL )
{
picture_t **pp_ring = p_sys->p_decoder->p_owner->pp_pics;
decoder_owner_sys_t *p_owner = p_sys->p_decoder->p_owner;
if( p_sys->p_decoder->p_module )
module_Unneed( p_sys->p_decoder, p_sys->p_decoder->p_module );
vlc_object_detach( p_sys->p_decoder );
vlc_object_release( p_sys->p_decoder );
picture_t **pp_ring = p_owner->pp_pics;
for( i = 0; i < PICTURE_RING_SIZE; i++ )
{
if ( pp_ring[i] != NULL )
......@@ -499,6 +500,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
free( pp_ring[i] );
}
}
free( p_owner );
}
/* Destroy user specified video filters */
......
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