From: vpa Date: Fri, 8 Apr 2016 17:18:58 +0000 (+0300) Subject: Fixed one of memory leaks: X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR26812_2;p=occt-copy.git Fixed one of memory leaks: MeshVS_Mesh object now is deleted on vremove --- diff --git a/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx b/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx index 6ff0a98463..de18afca4b 100644 --- a/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx +++ b/src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx @@ -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();