Commit 3b73cba7 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix possible leaks in git commit dialog

parent 71d86b57
......@@ -60,7 +60,7 @@ static void changeTextColorToRed(QLineEdit *lineEdit, const QColor &red)
GitCommitDialog::GitCommitDialog(const QString &lastCommit, const QFont &font, QWidget *parent, Qt::WindowFlags f)
: QDialog(parent, f)
, m_le(new QLineEdit())
, m_le(new QLineEdit(this))
{
setWindowTitle(i18n("Commit Changes"));
......@@ -79,7 +79,7 @@ GitCommitDialog::GitCommitDialog(const QString &lastCommit, const QFont &font, Q
m_pe.setPlaceholderText(i18n("Extended commit description..."));
m_pe.setFont(font);
QVBoxLayout *vlayout = new QVBoxLayout;
QVBoxLayout *vlayout = new QVBoxLayout(this);
vlayout->setContentsMargins(4, 4, 4, 4);
setLayout(vlayout);
......
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