Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
74f64031
Commit
74f64031
authored
May 20, 2007
by
Robert Knight
Browse files
Remove redundant check before delete[] and outdated comment.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666592
parent
a7549dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TerminalDisplay.cpp
View file @
74f64031
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment