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,7 +102,6 @@ void ConfigDialog::onAddButtonClicked()
checkUserInput();
}
if ( !dlg.isNull() )
delete dlg;
}
......@@ -155,6 +154,7 @@ void ConfigDialog::onEditButtonClicked()
item = mModel->item( index.row(), 1 ); // URL
item->setData( QVariant::fromValue( dlg->remoteUrl() ), Qt::DisplayRole );
}
delete dlg;
}
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