Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
e35c3430
Commit
e35c3430
authored
May 04, 2020
by
Joseph Mirabel
Browse files
Fix memory leak
parent
35d3109b
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/shape/details/convex.hxx
View file @
e35c3430
...
...
@@ -63,6 +63,7 @@ Convex<PolygonT>::Convex(const Convex<PolygonT>& other) :
num_polygons
(
other
.
num_polygons
)
{
if
(
own_storage_
)
{
delete
[]
polygons
;
polygons
=
new
PolygonT
[
num_polygons
];
memcpy
(
polygons
,
other
.
polygons
,
sizeof
(
PolygonT
)
*
num_polygons
);
}
...
...
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