don't leak

svn path=/trunk/KDE/kdegraphics/okular/; revision=673077
This commit is contained in:
Pino Toscano 2007-06-08 22:29:07 +00:00
parent 4bc728d950
commit 2cd592a81e
5 changed files with 14 additions and 2 deletions

View file

@ -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 );
}

View file

@ -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

View file

@ -18,6 +18,7 @@ class DlgGeneral : public QWidget
{
public:
DlgGeneral( QWidget * parent = 0 );
virtual ~DlgGeneral();
protected:
virtual void showEvent( QShowEvent * );

View file

@ -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 )

View file

@ -20,6 +20,7 @@ class DlgPerformance : public QWidget
public:
DlgPerformance( QWidget * parent = 0 );
virtual ~DlgPerformance();
protected slots:
void radioGroup_changed( int which );