Skip to content
Snippets Groups Projects
Commit 96fc928e authored by Francois Keith's avatar Francois Keith
Browse files

Avoid memory loss when calling Value::operator =

parent 9fa0b89f
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,8 @@ namespace dynamicgraph {
{
if (&value != this) {
type_ = value.type_;
if(value_ != 0x0)
delete value_;
void** ptValue = const_cast<void**>(&value_);
*ptValue = copyValue(value);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment