Commit 82961e00 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Properly cleanup afilters and vfilters on Close(). (Patch by Ikka Ollakka)

parent 244c62e5
...@@ -798,6 +798,15 @@ static void Close( vlc_object_t * p_this ) ...@@ -798,6 +798,15 @@ static void Close( vlc_object_t * p_this )
sout_StreamDelete( p_sys->p_out ); sout_StreamDelete( p_sys->p_out );
while( p_sys->i_afilters )
{
p_sys->i_afilters--;
if( p_sys->psz_afilters[p_sys->i_afilters] )
free( p_sys->psz_afilters[p_sys->i_afilters] );
if( p_sys->p_afilters_cfg[p_sys->i_afilters] )
free( p_sys->p_afilters_cfg[p_sys->i_afilters] );
}
while( p_sys->p_audio_cfg != NULL ) while( p_sys->p_audio_cfg != NULL )
{ {
config_chain_t *p_next = p_sys->p_audio_cfg->p_next; config_chain_t *p_next = p_sys->p_audio_cfg->p_next;
...@@ -812,6 +821,15 @@ static void Close( vlc_object_t * p_this ) ...@@ -812,6 +821,15 @@ static void Close( vlc_object_t * p_this )
} }
if( p_sys->psz_aenc ) free( p_sys->psz_aenc ); if( p_sys->psz_aenc ) free( p_sys->psz_aenc );
while( p_sys->i_vfilters )
{
p_sys->i_vfilters--;
if( p_sys->psz_vfilters[p_sys->i_vfilters] )
free( p_sys->psz_vfilters[p_sys->i_vfilters] );
if( p_sys->p_vfilters_cfg[p_sys->i_vfilters] )
free( p_sys->p_vfilters_cfg[p_sys->i_vfilters] );
}
while( p_sys->p_video_cfg != NULL ) while( p_sys->p_video_cfg != NULL )
{ {
config_chain_t *p_next = p_sys->p_video_cfg->p_next; config_chain_t *p_next = p_sys->p_video_cfg->p_next;
......
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