Fixes ambiguity errors on bcc32 compiler for 'BRepLib_MakeEdge'.
('BRepLib_MakeEdge::operator TopoDS_Edge()' and 'BRepLib_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepLib_MakeVertex'.
('BRepLib_MakeVertex::operator TopoDS_Vertex()' and 'BRepLib_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepLib_MakeFace'.
('BRepLib_MakeFace::operator TopoDS_Face()' and 'BRepLib_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepLib_MakeWire'.
('BRepLib_MakeWire::operator TopoDS_Wire()' and 'BRepLib_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepBuilderAPI_MakeVertex'.
('BRepBuilderAPI_MakeVertex::operator TopoDS_Vertex()' and 'BRepBuilderAPI_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepBuilderAPI_MakeFace'.
('BRepBuilderAPI_MakeFace::operator TopoDS_Face()' and 'BRepBuilderAPI_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepBuilderAPI_MakeEdge'.
('BRepBuilderAPI_MakeEdge::operator TopoDS_Edge()' and 'BRepBuilderAPI_MakeShape::operator TopoDS_Shape')
Fixes ambiguity errors on bcc32 compiler for 'BRepPrimAPI_MakeBox'.
('BRepPrimAPI_MakeBox::operator TopoDS_Shell()' and 'BRepPrimAPI_MakeShape::operator TopoDS_Shape')
('BRepPrimAPI_MakeBox::operator TopoDS_Solid()' and 'BRepPrimAPI_MakeShape::operator TopoDS_Shape'
[cppcheck-error-fix][mismatch-allocation-deallocation]

[CDM/CDM_COutMessageDriver.cxx:37]: (error) Mismatching allocation and deallocation: anAsciiString
[cppcheck-error-fix][mismatch-allocation-deallocation]

[IGESSelect/IGESSelect_SelectFromDrawing.cxx:44]: (error) Mismatching allocation and deallocation: nums
[IGESSelect/IGESSelect_SelectFromSingleView.cxx:31]: (error) Mismatching allocation and deallocation: nums
[cppcheck-error-fix][mismatch-allocation-deallocation][Pawel]

Original post:
Hello,

GeomFill_EvolvedSection.cxx (line 53) / GeomFill_UniformSection.cxx (line 52) should use the "delete []" operator as arrays are deleted.

Pawel
[cppcheck-warning-fix][mismatch-allocation-deallocation][Pawel]

Original post:
Hello,

the following variables in HLRBRep_InternalAlgo::HideSelected (lines 800-820 in OCCT 6.5.2):

Standard_Integer *Val = new Standard_Integer [nf+1];
Standard_Real *Size = new Standard_Real [nf+1];
Standard_Integer *Index = new Standard_Integer [nf+1];

are deleted (lines 918-920) the following way:

delete Val;
delete Size;
delete Index;

which I guess is wrong because the array delete operator should be used like in OCCT 6.5.1:

delete [] Val;
delete [] Size;
delete [] Index;

Pawel
[cppcheck-error-fix][mismatch-allocation-deallocation]

[Message/Message_Msg.cxx:160]: (error) Mismatching allocation and deallocation: sStringBuffer
[cppcheck-error-fix][mismatch-allocation-deallocation]

[Message/Message_PrinterOStream.cxx:125]: (error) Mismatching allocation and deallocation: astr
[cppcheck-error-fix][mismatch-allocation-deallocation]

[OpenGl/OpenGl_subrs.cxx:149]: (error) Mismatching allocation and deallocation: col
[cppcheck-error-fix][mismatch-allocation-deallocation]

[OpenGl/OpenGl_triedron.cxx:608]: (error) Mismatching allocation and deallocation: isPlaneActive
[OpenGl/OpenGl_triedron.cxx:1116]: (error) Mismatching allocation and deallocation: isPlaneActive
[cppcheck-error-fix][memory-leak]

[OpenGl/OpenGl_ImageBox.cxx:329]: (error) Memory leak: abuf
[cppcheck-error-fix][memory-leak]

[OpenGl/OpenGl_filters.cxx:351]: (error) Memory leak: ptr
[cppcheck-error-fix][memory-leak]

[OpenGl/OpenGl_indexpolygons.cxx:271]: (error) Memory leak: data
[cppcheck-error-fix][memory-leak]

[OpenGl/OpenGl_text.cxx:156]: (error) Memory leak: data