From: Jean-Baptiste Kempf Date: Sat, 26 Jul 2008 06:10:10 +0000 (-0700) Subject: Small memory leak fix. X-Git-Tag: 0.9.0-test3~249 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9b10c9a754d2434b5c087b606de64e1d34e3ef6a;p=vlc Small memory leak fix. --- diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp index 50834d9530..b3a720fd4a 100644 --- a/modules/gui/qt4/util/input_slider.cpp +++ b/modules/gui/qt4/util/input_slider.cpp @@ -139,6 +139,8 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard, QLinearGradient gradient( paddingL, 4, WLENGTH + paddingL , 4 ); QStringList colorList = qfu( psz_colors ).split( ";" ); + free( psz_colors ); + /* Fill with 255 if the list is too short */ if( colorList.size() < 12 ) for( int i = colorList.size(); i < 12; i++)