Commit 527aba64 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix leak.

parent 01b51fb6
...@@ -74,7 +74,7 @@ bool configNameExists(const QList<MaemoDeviceConfig> &devConfs, ...@@ -74,7 +74,7 @@ bool configNameExists(const QList<MaemoDeviceConfig> &devConfs,
class NameValidator : public QValidator class NameValidator : public QValidator
{ {
public: public:
NameValidator(const QList<MaemoDeviceConfig> &devConfs) NameValidator(const QList<MaemoDeviceConfig> &devConfs, QWidget *parent = 0)
: m_devConfs(devConfs) : m_devConfs(devConfs)
{ {
} }
...@@ -106,7 +106,7 @@ MaemoDeviceConfigurationsSettingsWidget::MaemoDeviceConfigurationsSettingsWidget ...@@ -106,7 +106,7 @@ MaemoDeviceConfigurationsSettingsWidget::MaemoDeviceConfigurationsSettingsWidget
: QWidget(parent), : QWidget(parent),
m_ui(new Ui_MaemoDeviceConfigurationsSettingsWidget), m_ui(new Ui_MaemoDeviceConfigurationsSettingsWidget),
m_devConfs(MaemoDeviceConfigurations::instance().devConfigs()), m_devConfs(MaemoDeviceConfigurations::instance().devConfigs()),
m_nameValidator(new NameValidator(m_devConfs)), m_nameValidator(new NameValidator(m_devConfs, this)),
m_saveSettingsRequested(false) m_saveSettingsRequested(false)
{ {
initGui(); initGui();
......
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