Commit 60564df6 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak.

parent cc09f50a
...@@ -401,23 +401,14 @@ static void Close( vlc_object_t *p_this ) ...@@ -401,23 +401,14 @@ static void Close( vlc_object_t *p_this )
for( i = 0; i < p_sys->i_effect; i++ ) for( i = 0; i < p_sys->i_effect; i++ )
{ {
#define p_effect p_sys->effect[i] #define p_effect p_sys->effect[i]
if( p_effect->psz_name ) free( p_effect->p_data );
{ free( p_effect->psz_name );
free( p_effect->psz_name ); free( p_effect->psz_args );
}
if( p_effect->psz_args )
{
free( p_effect->psz_args );
}
free( p_effect ); free( p_effect );
#undef p_effect #undef p_effect
} }
if( p_sys->effect ) free( p_sys->effect );
{
free( p_sys->effect );
}
free( p_filter->p_sys ); free( p_filter->p_sys );
} }
......
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