diff --git a/conf/dlgaccessibility.cpp b/conf/dlgaccessibility.cpp index 007194379..b1ad66e47 100644 --- a/conf/dlgaccessibility.cpp +++ b/conf/dlgaccessibility.cpp @@ -14,6 +14,6 @@ DlgAccessibility::DlgAccessibility( QWidget * parent ) : QWidget( parent ) { - Ui_DlgAccessibilityBase *dlg = new Ui_DlgAccessibilityBase(); - dlg->setupUi( this ); + Ui_DlgAccessibilityBase dlg; + dlg.setupUi( this ); } diff --git a/conf/dlggeneral.cpp b/conf/dlggeneral.cpp index 076800bc1..80478e635 100644 --- a/conf/dlggeneral.cpp +++ b/conf/dlggeneral.cpp @@ -22,6 +22,11 @@ DlgGeneral::DlgGeneral( QWidget * parent ) m_dlg->setupUi( this ); } +DlgGeneral::~DlgGeneral() +{ + delete m_dlg; +} + void DlgGeneral::showEvent( QShowEvent * ) { #if OKULAR_FORCE_DRM diff --git a/conf/dlggeneral.h b/conf/dlggeneral.h index 84a81f497..1ee27683d 100644 --- a/conf/dlggeneral.h +++ b/conf/dlggeneral.h @@ -18,6 +18,7 @@ class DlgGeneral : public QWidget { public: DlgGeneral( QWidget * parent = 0 ); + virtual ~DlgGeneral(); protected: virtual void showEvent( QShowEvent * ); diff --git a/conf/dlgperformance.cpp b/conf/dlgperformance.cpp index a9e173d52..7573ccb0e 100644 --- a/conf/dlgperformance.cpp +++ b/conf/dlgperformance.cpp @@ -30,6 +30,11 @@ DlgPerformance::DlgPerformance( QWidget * parent ) connect( m_dlg->kcfg_MemoryLevel, SIGNAL( changed( int ) ), this, SLOT( radioGroup_changed( int ) ) ); } +DlgPerformance::~DlgPerformance() +{ + delete m_dlg; +} + void DlgPerformance::radioGroup_changed( int which ) { switch ( which ) diff --git a/conf/dlgperformance.h b/conf/dlgperformance.h index d45cdc462..639e3efe4 100644 --- a/conf/dlgperformance.h +++ b/conf/dlgperformance.h @@ -20,6 +20,7 @@ class DlgPerformance : public QWidget public: DlgPerformance( QWidget * parent = 0 ); + virtual ~DlgPerformance(); protected slots: void radioGroup_changed( int which );