[vlc-devel] commit: Fix memleak in audio equalizer. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Jul 31 20:15:48 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 20:00:46 2008 +0200| [1d906a234d7f14b3eb772b94bce3a5c3bbf01d47]
Fix memleak in audio equalizer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d906a234d7f14b3eb772b94bce3a5c3bbf01d47
---
modules/audio_filter/equalizer.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 3d2df4a..a05c34a 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -338,8 +338,10 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
}
}
- var_CreateGetString( p_aout,"equalizer-bands" );
- var_CreateGetString( p_aout, "equalizer-preset" );
+ char *psz_tmp = var_CreateGetString( p_aout,"equalizer-bands" );
+ free( psz_tmp );
+ psz_tmp = var_CreateGetString( p_aout, "equalizer-preset" );
+ free( psz_tmp );
p_sys->b_2eqz = var_CreateGetBool( p_aout, "equalizer-2pass" );
More information about the vlc-devel
mailing list