diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 4f28837d..555a9913 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -429,7 +429,7 @@ TerminalDisplay::TerminalDisplay(QWidget* parent)
// that TerminalDisplay will handle repainting its entire area.
setAttribute(Qt::WA_OpaquePaintEvent);
- _gridLayout = new QGridLayout(this);
+ _gridLayout = new QGridLayout;
_gridLayout->setContentsMargins(0, 0, 0, 0);
setLayout(_gridLayout);
@@ -448,9 +448,6 @@ TerminalDisplay::~TerminalDisplay()
disconnect(_blinkCursorTimer);
delete[] _image;
-
- delete _gridLayout;
- delete _outputSuspendedLabel;
delete _filterChain;
}
@@ -3067,8 +3064,7 @@ void TerminalDisplay::outputSuspended(bool suspended)
"suspended"
" by pressing Ctrl+S."
" Press Ctrl+Q to resume."
- " Click here to dismiss this message."),
- this);
+ " Click here to dismiss this message."));
QPalette palette(_outputSuspendedLabel->palette());
KColorScheme::adjustBackground(palette, KColorScheme::NeutralBackground);