[vlc-devel] commit: Memleaks in Equalizer callback and Mac OS X audio module. ( Derk-Jan Hartman )

git version control git at videolan.org
Sat May 30 00:32:48 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu May 28 15:41:31 2009 +0200| [1f374e04e9952f167d752776837e0aa7ff999acf] | committer: Jean-Baptiste Kempf 

Memleaks in Equalizer callback and Mac OS X audio module.
(cherry picked from commit 1d3b0ce24c9de1a35ca96addfffa2cd25ccd30fb)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f374e04e9952f167d752776837e0aa7ff999acf
---

 modules/audio_filter/equalizer.c |    1 +
 modules/audio_output/auhal.c     |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index e10696f..e5e4628 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -531,6 +531,7 @@ static int PresetCallback( vlc_object_t *p_this, char const *psz_cmd,
                     free( psz_newbands );
                     return VLC_ENOMEM;
                 }
+                free( psz_newbands );
                 psz_newbands = psz;
             }
             if( p_sys->b_first == false )
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index edb438c..530197e 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -993,6 +993,7 @@ static void Probe( aout_instance_t * p_aout )
         if( !AudioDeviceHasOutput( p_devices[i]) )
         {
             msg_Dbg( p_aout, "this device is INPUT only. skipping..." );
+            free( psz_name );
             continue;
         }
 




More information about the vlc-devel mailing list