Commit 31e57614 authored by Antoine Cellerier's avatar Antoine Cellerier

Add 2 missing calls to config_ChainDestroy().

parent d7644d8d
...@@ -111,7 +111,7 @@ int spu_Init( spu_t *p_spu ) ...@@ -111,7 +111,7 @@ int spu_Init( spu_t *p_spu )
while( psz_parser && *psz_parser ) while( psz_parser && *psz_parser )
{ {
config_chain_t *p_cfg; /* Do we ever need to free this ? */ config_chain_t *p_cfg;
char *psz_name; char *psz_name;
psz_parser = config_ChainCreate( &psz_name, &p_cfg, psz_parser ); psz_parser = config_ChainCreate( &psz_name, &p_cfg, psz_parser );
...@@ -138,6 +138,7 @@ int spu_Init( spu_t *p_spu ) ...@@ -138,6 +138,7 @@ int spu_Init( spu_t *p_spu )
else else
{ {
msg_Dbg( p_spu, "no sub filter found" ); msg_Dbg( p_spu, "no sub filter found" );
config_ChainDestroy( p_spu->pp_filter[p_spu->i_filter]->p_cfg );
vlc_object_detach( p_spu->pp_filter[p_spu->i_filter] ); vlc_object_detach( p_spu->pp_filter[p_spu->i_filter] );
vlc_object_destroy( p_spu->pp_filter[p_spu->i_filter] ); vlc_object_destroy( p_spu->pp_filter[p_spu->i_filter] );
} }
...@@ -206,6 +207,7 @@ void spu_Destroy( spu_t *p_spu ) ...@@ -206,6 +207,7 @@ void spu_Destroy( spu_t *p_spu )
module_Unneed( p_spu->pp_filter[p_spu->i_filter], module_Unneed( p_spu->pp_filter[p_spu->i_filter],
p_spu->pp_filter[p_spu->i_filter]->p_module ); p_spu->pp_filter[p_spu->i_filter]->p_module );
free( p_spu->pp_filter[p_spu->i_filter]->p_owner ); free( p_spu->pp_filter[p_spu->i_filter]->p_owner );
config_ChainDestroy( p_spu->pp_filter[p_spu->i_filter]->p_cfg );
vlc_object_detach( p_spu->pp_filter[p_spu->i_filter] ); vlc_object_detach( p_spu->pp_filter[p_spu->i_filter] );
vlc_object_destroy( p_spu->pp_filter[p_spu->i_filter] ); vlc_object_destroy( p_spu->pp_filter[p_spu->i_filter] );
} }
......
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