From 9b10c9a754d2434b5c087b606de64e1d34e3ef6a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 25 Jul 2008 23:10:10 -0700 Subject: [PATCH] Small memory leak fix. --- modules/gui/qt4/util/input_slider.cpp | 2 ++ 1 file changed, 2 insertions(+) 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++) -- 2.39.2