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

0023392: Memory leak in OCAF in debug mode

TDF_LabelNode::Destroy() does not free memory for entry strings TCollection_AsciiString myDebugEntry problem was corrected.
This commit is contained in:
Roman Lygin
2012-08-24 15:08:50 +04:00
parent 17f65eb229
commit 536416f3d2
5 changed files with 14 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ void TDF_LabelNode::Destroy (const TDF_HAllocator& theAllocator)
myFirstChild->Destroy (theAllocator);
myFirstChild = aSecondChild;
}
myFirstAttribute.Nullify();
this->~TDF_LabelNode();
myFather = myBrother = myFirstChild = myLastFoundChild = NULL;
myTag = myFlags = 0;