fixing some memory problems

This commit is contained in:
Dr Scott
2012-01-26 00:53:53 +01:00
parent a21376f6ce
commit 7d21a4e0fb
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ void EdgeBasedGraphFactory::Run() {
}
}
++secondRestrictionIterator;
} while(u == secondRestrictionIterator->fromNode);
} while(secondRestrictionIterator != inputRestrictions.end() && u == secondRestrictionIterator->fromNode);
}
if(_nodeBasedGraph->EndEdges(v) == _nodeBasedGraph->BeginEdges(v) + 1 && _nodeBasedGraph->GetEdgeData(e1).type != INT_MAX) {
EdgeBasedNode currentNode;
@@ -194,7 +194,7 @@ void EdgeBasedGraphFactory::Run() {
}
}
++secondRestrictionIterator;
} while(u == secondRestrictionIterator->fromNode);
} while(secondRestrictionIterator != inputRestrictions.end() && u == secondRestrictionIterator->fromNode);
}
if( !isTurnRestricted || (isOnlyAllowed && w == onlyToNode) ) { //only add an edge if turn is not prohibited