]> OCCT Git - occt-copy.git/commitdiff
Fixed one of memory leaks: CR26812_2
authorvpa <vpa@opencascade.com>
Fri, 8 Apr 2016 17:18:58 +0000 (20:18 +0300)
committervpa <vpa@opencascade.com>
Fri, 8 Apr 2016 17:20:09 +0000 (20:20 +0300)
MeshVS_Mesh object now is deleted on vremove

src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx

index 6ff0a9846375b783e960f0239382cef8ceeb4581..de18afca4b90b9243fd8df736136da8bdfae6c82 100644 (file)
@@ -1543,7 +1543,6 @@ static int MeshLOD (Draw_Interpretor& theDI,
     aLODIdx++;
   }
 
-  Draw::Set (aShapeName, new XSDRAWSTLVRML_DrawableMesh (anOriginMesh));
   Handle(V3d_View) aView = ViewerTest::CurrentView();
   if (!aView.IsNull())
     aView->FitAll();