Commit e95fd88b authored by Nate Weibley's avatar Nate Weibley

Fix memory leak during dragging waypoint

parent 033f52bd
......@@ -629,7 +629,7 @@ void MissionController::_recalcWaypointLines(void)
double homePositionAltitude = homeItem->coordinate().altitude();
minAltSeen = maxAltSeen = homeItem->coordinate().altitude();
_waypointLines.clear();
_waypointLines.clearAndDeleteContents();
bool linkBackToHome = false;
for (int i=1; i<_visualItems->count(); i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment