Commit 9b10c9a7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Small memory leak fix.

parent 0bf6bcc5
......@@ -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++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment