0023265: cppcheck warning: Mismatching allocation and deallocation
[occt.git] / src / QANewModTopOpe / QANewModTopOpe.cxx
index 7304b80..86a190c 100755 (executable)
@@ -659,7 +659,7 @@ Standard_Boolean QANewModTopOpe::IsConnected(const TopoDS_Shape& TheS)
     if(aNotChanged) break;
     if(aRes) break;
   }
-  delete aMat;
+  delete [] aMat;
 
   //  cout << "QANewModTopOpe::IsConnected END: aRes="<<aRes   << ";ncount="<<ncount<<endl;
   cout << "QANewModTopOpe::IsConnected END: aRes="<<aRes <<endl;