Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
8b4bc768
Commit
8b4bc768
authored
Oct 20, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use delete[], add assert
parent
8b4cad8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
richio.cpp
common/richio.cpp
+3
-1
No files found.
common/richio.cpp
View file @
8b4bc768
...
...
@@ -71,9 +71,11 @@ void LINE_READER::expandCapacity( unsigned newsize )
// resize the buffer, and copy the original data
char
*
bigger
=
new
char
[
capacity
];
wxASSERT
(
capacity
>=
length
);
memcpy
(
bigger
,
line
,
length
);
delete
line
;
delete
[]
line
;
line
=
bigger
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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