more safe deletes

This commit is contained in:
Dennis Luxen
2011-07-12 17:14:39 +00:00
parent 96f5c1c735
commit a76cf5cad4
+4 -4
View File
@@ -59,8 +59,8 @@ private:
path = new std::vector< _PathData >(); path = new std::vector< _PathData >();
} }
~_ThreadData() { ~_ThreadData() {
delete path; DELETE( path );
delete sEngine; DELETE( sEngine );
} }
}; };
@@ -86,7 +86,7 @@ public:
~ViaRoutePlugin() { ~ViaRoutePlugin() {
for ( unsigned threadNum = 0; threadNum < threadData.size(); threadNum++ ) { for ( unsigned threadNum = 0; threadNum < threadData.size(); threadNum++ ) {
delete threadData[threadNum]; DELETE( threadData[threadNum] );
} }
} }
@@ -272,7 +272,7 @@ public:
break; break;
} }
delete desc; DELETE( desc );
return; return;
} }
private: private: