0023392: Memory leak in OCAF in debug mode
[occt.git] / src / TDF / TDF_LabelNode.cxx
index 28702bd..e6ae66f 100755 (executable)
@@ -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;