Skip to content
Snippets Groups Projects
Commit ae27593f authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Polyline; Delete ptr before setting it null.

Otherwise there is a memory leak.
parent 50747218
No related branches found
No related tags found
No related merge requests found
......@@ -347,6 +347,7 @@ Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> &
if (!ply_found)
{
ERR("Error in Polyline::contructPolylineFromSegments() - Not all segments are connected.");
delete new_ply;
new_ply = nullptr;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment