Commit 74f64031 authored by Robert Knight's avatar Robert Knight
Browse files

Remove redundant check before delete[] and outdated comment.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666592
parent a7549dae
......@@ -360,8 +360,7 @@ TerminalDisplay::~TerminalDisplay()
{
qApp->removeEventFilter( this );
if (_image)
delete[] _image;
delete[] _image;
delete _gridLayout;
delete _outputSuspendedLabel;
......@@ -1355,7 +1354,7 @@ void TerminalDisplay::updateImageSize()
for (int lin = 0; lin < lins; lin++)
memcpy((void*)&_image[_columns*lin],
(void*)&oldimg[oldcol*lin],cols*sizeof(Character));
delete[] oldimg; //FIXME: try new,delete
delete[] oldimg;
}
_resizing = (oldlin!=_lines) || (oldcol!=_columns);
......
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