1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

Fix memleaks: Fill in the destructor of simple preference.

This commit is contained in:
Rémi Duraffort 2008-08-01 18:40:53 +02:00
parent 552b5247ee
commit 07be8bb586
2 changed files with 13 additions and 1 deletions

View File

@ -568,6 +568,18 @@ void SPrefsPanel::updateAudioOptions( int number)
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])

View File

@ -105,7 +105,7 @@ class SPrefsPanel : public QWidget
Q_OBJECT
public:
SPrefsPanel( intf_thread_t *, QWidget *, int );
virtual ~SPrefsPanel() {};
virtual ~SPrefsPanel();
void apply();
void clean();
private: