Skipping ContractionCleantup entirely. Avoids a big allocation. Removing

DELETE() macro.
This commit is contained in:
DennisOSRM
2012-04-12 19:35:47 +02:00
parent b16f3f91d9
commit e104017d4c
7 changed files with 35 additions and 34 deletions
+3 -2
View File
@@ -67,7 +67,7 @@ public:
}
virtual ~ViaRoutePlugin() {
DELETE( searchEngine );
delete searchEngine;
}
std::string GetDescriptor() const { return pluginDescriptorString; }
@@ -139,6 +139,7 @@ public:
}
reply.status = http::Reply::ok;
//TODO: Move to member as smart pointer
BaseDescriptor<SearchEngine<EdgeData, StaticGraph<EdgeData> > > * desc;
std::string JSONParameter = routeParameters.options.Find("jsonp");
if("" != JSONParameter) {
@@ -234,7 +235,7 @@ public:
break;
}
DELETE( desc );
delete desc;
return;
}
private: