Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Pitiot
CGoGN
Commits
b2ac6fc1
Commit
b2ac6fc1
authored
Nov 05, 2012
by
Kenneth Vanhoey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug correction (Mismatched free() / delete / delete []) in
import2tablesSurface.hpp line 1004 tensor.hpp line 95
parent
a1c16ba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/Algo/Import/import2tablesSurface.hpp
include/Algo/Import/import2tablesSurface.hpp
+1
-1
include/Geometry/tensor.hpp
include/Geometry/tensor.hpp
+1
-1
No files found.
include/Algo/Import/import2tablesSurface.hpp
View file @
b2ac6fc1
...
...
@@ -1001,7 +1001,7 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
if
(
*
endline
==
'\r'
)
// for windows
fp
.
read
(
endline
,
sizeof
(
char
))
;
assert
(
*
endline
==
'\n'
)
;
delete
endline
;
delete
[]
endline
;
// Define containers
VertexAttribute
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
getAttribute
<
typename
PFP
::
VEC3
,
VERTEX
>(
"position"
)
;
...
...
include/Geometry/tensor.hpp
View file @
b2ac6fc1
...
...
@@ -92,7 +92,7 @@ Tensor<SIZE, REAL>::operator=(const Tensor& T)
{
m_order
=
T
.
m_order
;
delete
(
m_data
)
;
delete
[]
m_data
;
m_data
=
new
REAL
[
T
.
nbElem
()]
;
for
(
unsigned
int
i
=
0
;
i
<
T
.
nbElem
()
;
++
i
)
...
...
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