1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023901: Memory leaks in tests

Removed a field from BOPDS_PaveBlock that contained  the BOPDS_PaveBlock object itself.
Function RealPaveBlock() now returns a const handle, not a const reference to handle.
Removed const modifier because function now returns an object, not a reference to it.
This commit is contained in:
omy
2013-04-17 17:15:29 +04:00
parent ed97f43c0c
commit 323c04defa
5 changed files with 8 additions and 17 deletions

View File

@@ -126,7 +126,7 @@
for (; aIt.More(); aIt.Next()) {
Handle(BOPDS_PaveBlock)& aPB=aIt.ChangeValue();
//
const Handle(BOPDS_PaveBlock)& aPBR=aPB->RealPaveBlock();
const Handle(BOPDS_PaveBlock) aPBR=aPB->RealPaveBlock();
if (aMPBF.Contains(aPBR)) {
continue;
}

View File

@@ -663,7 +663,7 @@ static void ToleranceFF(const TopoDS_Face& aF1,
}
for (; aItLPB.More(); aItLPB.Next()) {
const Handle(BOPDS_PaveBlock)& aPBx=aItLPB.Value();
const Handle(BOPDS_PaveBlock)& aPBRx=aPBx->RealPaveBlock();
const Handle(BOPDS_PaveBlock) aPBRx=aPBx->RealPaveBlock();
//
// update vertices of paves
aPave[0]=aPBx->Pave1();