Commit 9de664c2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak

svn path=/trunk/KDE/kdepim/runtime/; revision=1200979
parent 893b93eb
...@@ -102,8 +102,7 @@ void ConfigDialog::onAddButtonClicked() ...@@ -102,8 +102,7 @@ void ConfigDialog::onAddButtonClicked()
checkUserInput(); checkUserInput();
} }
if ( !dlg.isNull() ) delete dlg;
delete dlg;
} }
void ConfigDialog::onRemoveButtonClicked() void ConfigDialog::onRemoveButtonClicked()
...@@ -155,6 +154,7 @@ void ConfigDialog::onEditButtonClicked() ...@@ -155,6 +154,7 @@ void ConfigDialog::onEditButtonClicked()
item = mModel->item( index.row(), 1 ); // URL item = mModel->item( index.row(), 1 ); // URL
item->setData( QVariant::fromValue( dlg->remoteUrl() ), Qt::DisplayRole ); item->setData( QVariant::fromValue( dlg->remoteUrl() ), Qt::DisplayRole );
} }
delete dlg;
} }
void ConfigDialog::onOkClicked() void ConfigDialog::onOkClicked()
......
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