close LUA context to avoid memory leak on shutdown

This commit is contained in:
Dennis Luxen 2014-07-01 14:26:02 +02:00
parent a98e65aa1e
commit 410120adee

View File

@ -319,6 +319,8 @@ int main(int argc, char *argv[])
traffic_light_list.clear();
traffic_light_list.shrink_to_fit();
lua_close(lua_state);
unsigned number_of_edge_based_nodes = edge_based_graph_factor->GetNumberOfEdgeBasedNodes();
BOOST_ASSERT(number_of_edge_based_nodes != std::numeric_limits<unsigned>::max());
DeallocatingVector<EdgeBasedEdge> edgeBasedEdgeList;