Hi all, I've runned cppcheck on source code revision 15849. This is the report.
[./app/qgsmaptooladdvertex.cpp:111]: (error) Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid. [./app/qgssinglesymboldialog.cpp:149]: (error) Possible null pointer dereference: mVectorLayer - otherwise it is redundant to check if mVectorLayer is null at line 223 [./core/pal/problem.cpp:2461]: (error) Memory leak: solution [./core/qgsgeometry.cpp:1565]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:1621]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:1679]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:1757]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:1879]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:2129]: (error) Mismatching allocation and deallocation: newbuffer [./core/qgsgeometry.cpp:4802]: (error) Mismatching allocation and deallocation: newGeometry [./core/spatialite/spatialite.c:124214]: (error) Memory leak: p [./core/spatialite/spatialite.c:169967]: (error) Memory leak: p [./core/spatialite/spatialite.c:170206]: (error) Memory leak: p [./core/spatialite/sqlite3.c:14405]: (error) Common realloc mistake: "p" nulled but not freed upon failure [./mapserver/qgssldparser.cpp:1408]: (error) Mismatching allocation and deallocation: adfFixedLevels [./plugins/dxf2shp_converter/shapelib-1.2.10/dbfopen.c:540]: (error) Memory leak: pszFullname [./plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c:458]: (error) Memory leak: pabyBuf [./plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c:657]: (error) Memory leak: pszBasename [./plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c:657]: (error) Memory leak: pszFullname [./plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c:662]: (error) Resource leak: fpSHP [./providers/grass/qgsgrassprovider.cpp:407]: (error) Common realloc mistake: "wkb" nulled but not freed upon failure Regards, Gabriele Monfardini _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer