]> git.sesse.net Git - vlc/commitdiff
Memleaks in Equalizer callback and Mac OS X audio module.
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 28 May 2009 13:41:31 +0000 (15:41 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 29 May 2009 22:32:42 +0000 (00:32 +0200)
(cherry picked from commit 1d3b0ce24c9de1a35ca96addfffa2cd25ccd30fb)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_filter/equalizer.c
modules/audio_output/auhal.c

index e10696f82aceb0b9394cb76ef1835ac4372f9d19..e5e46281cb4d732a4bddb56205764590550ded5c 100644 (file)
@@ -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 )
index edb438cbd5208ee02e61d440565d4562d10a731d..530197edecd0c71b041aa4c9c87a94fcb3fcf60b 100644 (file)
@@ -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;
         }