more safe deletes
This commit is contained in:
parent
96f5c1c735
commit
a76cf5cad4
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user