Commit 5e00b769 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed Ui_PasteBinComSettingsWidget memory leak

parent 671a1874
......@@ -65,11 +65,11 @@ QString PasteBinDotComSettings::trCategory() const
QWidget *PasteBinDotComSettings::createPage(QWidget *parent)
{
Ui_PasteBinComSettingsWidget* ui = new Ui_PasteBinComSettingsWidget;
Ui_PasteBinComSettingsWidget ui;
QWidget *w = new QWidget(parent);
ui->setupUi(w);
ui->lineEdit->setText(hostPrefix());
connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SLOT(serverChanged(QString)));
ui.setupUi(w);
ui.lineEdit->setText(hostPrefix());
connect(ui.lineEdit, SIGNAL(textChanged(QString)), this, SLOT(serverChanged(QString)));
return w;
}
......
Supports Markdown
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