mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
Fix memleaks: Fill in the destructor of simple preference.
This commit is contained in:
parent
552b5247ee
commit
07be8bb586
@ -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])
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user