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

cppcheck report:
[src/OpenGl/OpenGl_ImageBox.cxx:349]: (error) Mismatching allocation and deallocation: base
[src/OpenGl/OpenGl_ImageBox.cxx:350]: (error) Mismatching allocation and deallocation: rbuf
[src/OpenGl/OpenGl_ImageBox.cxx:351]: (error) Mismatching allocation and deallocation: gbuf
[src/OpenGl/OpenGl_ImageBox.cxx:352]: (error) Mismatching allocation and deallocation: bbuf
[src/OpenGl/OpenGl_ImageBox.cxx:353]: (error) Mismatching allocation and deallocation: abuf

Fix:
Replace free with delete
[cppcheck-fix][returning-reference-to-autovariable

[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:78]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:103]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:129]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:141]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:180]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:192]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:203]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:219]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:247]: (error) Returning reference to auto variable
[src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx:263]: (error) Returning reference to auto variable

Some of them seem to be false positive (the isquad check series).
[cppcheck-fix][mismatch-allocation-deallocation]

cppcheck report:
[src/QABugs/QABugs_3.cxx:162]: (error) Mismatching allocation and deallocation: file1
[src/QABugs/QABugs_3.cxx:177]: (error) Mismatching allocation and deallocation: file1
[src/QABugs/QABugs_3.cxx:223]: (error) Mismatching allocation and deallocation: file1
[src/QABugs/QABugs_3.cxx:425]: (error) Mismatching allocation and deallocation: filename
[src/QABugs/QABugs_3.cxx:473]: (error) Mismatching allocation and deallocation: filename
[src/QABugs/QABugs_3.cxx:483]: (error) Mismatching allocation and deallocation: filename
[src/QABugs/QABugs_3.cxx:492]: (error) Mismatching allocation and deallocation: filename
[src/QABugs/QABugs_3.cxx:509]: (error) Mismatching allocation and deallocation: filename
[src/QABugs/QABugs_3.cxx:595]: (error) Mismatching allocation and deallocation: Ch
[src/QABugs/QABugs_3.cxx:596]: (error) Mismatching allocation and deallocation: FileName

Fix : move delete to delete []
[cppcheck-fix][mismatch-allocation-deallocation]

cppcheck report:
[src/QANewModTopOpe/QANewModTopOpe.cxx:662]: (error) Mismatching allocation and deallocation: aMat

fix: move delete aMat to delete [] aMat
[cppcheck-fix][data-allocated-but-not-initialized]

cppcheck report:
[src/Graphic2d/Graphic2d_ImageFile.cxx:413]: (error) Data is allocated but not initialized: pheader

Fix:
initialized pheader to NULL.
[cppcheck-fixes][unitialized-variable]

cppcheck report:
[src/OSD/OSD_PerfMeter.c:186]: (error) Uninitialized variable: utime
[src/OSD/OSD_PerfMeter.c:207]: (error) Uninitialized variable: utime

fix:
set utime to 0.
[cppcheck-fix][uninitialized-variable]

cppcheck report:
[src/VoxelClient/VoxelClient_VisDrawer.cxx:416]: (error) Uninitialized variable: vdir
[cppcheck-fix][mismatch-allocation-deallocation]

cppcheck report:
[src/QADNaming/QADNaming_IteratorsCommands.cxx:161]: (error) Mismatching allocation and deallocation: aSubName

fix:
move delete to delete []