Commit 0fe515a3 authored by Pierre Ynard's avatar Pierre Ynard

lua: fix memory leak in equalizer function

(cherry picked from commit e52f2154aeb9260b08ca063d30d7f8739a3bf95b)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent a1a3464c
......@@ -268,9 +268,11 @@ static int vlclua_equalizer_setpreset( lua_State *L )
char *psz_af = var_GetNonEmptyString( p_aout, "audio-filter" );
if( !psz_af || strstr ( psz_af, "equalizer" ) == NULL )
{
free( psz_af );
vlc_object_release( p_aout );
return 0;
}
free( psz_af );
char *newstr;
if( asprintf( &newstr , "%6.1f" , eqz_preset_10b[presetid].f_amp[0] ) == -1 )
return 0;
......
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