CONNECT( ui.volNormBox, toggled( bool ), ui.volNormSpin,
setEnabled( bool ) );
- qs_filter = qfu( config_GetPsz( p_intf, "audio-filter" ) );
+ char* psz = config_GetPsz( p_intf, "audio-filter" );
+ qs_filter = qfu( psz );
+ free( psz );
bool b_normalizer = ( qs_filter.contains( "volnorm" ) );
{
ui.volNormBox->setChecked( b_normalizer );
{
ui.DVDDevice->setText( qfu( psz_dvddiscpath ) );
}
- delete psz_cddadiscpath; delete psz_dvddiscpath;
- delete psz_vcddiscpath;
+ free( psz_cddadiscpath );
+ free( psz_dvddiscpath );
+ free( psz_vcddiscpath );
}
CONFIG_GENERIC_NO_BOOL( "server-port", Integer, NULL, UDPPort );
ui.systemCodecBox->hide();
#endif
/* Access Filters */
- qs_filter = qfu( config_GetPsz( p_intf, "access-filter" ) );
+ char* psz = config_GetPsz( p_intf, "access-filter" );
+ qs_filter = qfu( psz );
+ free( psz );
ui.timeshiftBox->setChecked( qs_filter.contains( "timeshift" ) );
ui.dumpBox->setChecked( qs_filter.contains( "dump" ) );
ui.recordBox->setChecked( qs_filter.contains( "record" ) );
else if( strstr( psz_intf, "qt" ) )
ui.qt4->setChecked( true );
}
- delete psz_intf;
+ free( psz_intf );
optionWidgets.append( ui.skins );
optionWidgets.append( ui.qt4 );
optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
}
+
+SPrefsPanel::~SPrefsPanel()
+{
+ QList<ConfigControl *>::Iterator conf_it;
+ for( conf_it = controls.begin() ; conf_it != controls.end() ; conf_it++ )
+ {
+ ConfigControl *c = qobject_cast<ConfigControl *>(*conf_it);
+ delete c;
+ }
+ controls.clear();
+}
+
void SPrefsPanel::updateAudioVolume( int volume )
{
qobject_cast<QSpinBox *>(optionWidgets[volLW])