]> git.sesse.net Git - vlc/commitdiff
Small memory leak fix.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jul 2008 06:10:10 +0000 (23:10 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jul 2008 06:10:10 +0000 (23:10 -0700)
modules/gui/qt4/util/input_slider.cpp

index 50834d95300768e0beb4f2247bbde2f4064e43af..b3a720fd4a63fdd64a2501c5d69f3dc9311d6e95 100644 (file)
@@ -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++)