Opened 13 years ago

Closed 5 years ago

#443 closed defect (worksforme)

Number of deletion of pointer to incomplete type

Reported by: mloskot Owned by: strk
Priority: major Milestone: GEOS Fund Me
Component: Core Version: main
Severity: Significant Keywords: memory, auto_ptr, msvc
Cc:

Description

Building GEOS (svn trunk r3365) using Visual C++ 2010 throws number of warnings that may indicate potential memory leaks:

1>D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(931): warning C4150: deletion of pointer to incomplete type 'geos::geom::Polygon'; no destructor called
1>          G:\dev\geos\_svn\trunk\include\geos/util/GeometricShapeFactory.h(40) : see declaration of 'geos::geom::Polygon'
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(930) : while compiling class template member function 'std::auto_ptr<_Ty>::~auto_ptr(void)'
1>          with
1>          [
1>              _Ty=geos::geom::Polygon
1>          ]
1>          ..\..\trunk\src\geom\util\SineStarFactory.cpp(44) : see reference to class template instantiation 'std::auto_ptr<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=geos::geom::Polygon
1>          ]
1>D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(931): warning C4150: deletion of pointer to incomplete type 'geos::geom::CoordinateSequence'; no destructor called
1>          G:\dev\geos\_svn\trunk\include\geos/geom/CoordinateSequenceFactory.h(33) : see declaration of 'geos::geom::CoordinateSequence'
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(930) : while compiling class template member function 'std::auto_ptr<_Ty>::~auto_ptr(void)'
1>          with
1>          [
1>              _Ty=geos::geom::CoordinateSequence
1>          ]
1>          ..\..\trunk\src\geom\util\SineStarFactory.cpp(84) : see reference to class template instantiation 'std::auto_ptr<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=geos::geom::CoordinateSequence
1>          ]
1>D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(931): warning C4150: deletion of pointer to incomplete type 'geos::geom::LinearRing'; no destructor called
1>          G:\dev\geos\_svn\trunk\include\geos/geom/GeometryFactory.h(42) : see declaration of 'geos::geom::LinearRing'
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(930) : while compiling class template member function 'std::auto_ptr<_Ty>::~auto_ptr(void)'
1>          with
1>          [
1>              _Ty=geos::geom::LinearRing
1>          ]
1>          ..\..\trunk\src\geom\util\SineStarFactory.cpp(85) : see reference to class template instantiation 'std::auto_ptr<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=geos::geom::LinearRing
1>          ]
1>D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(931): warning C4150: deletion of pointer to incomplete type 'geos::geom::IntersectionMatrix'; no destructor called
1>          G:\dev\geos\_svn\trunk\include\geos/geomgraph/GraphComponent.h(31) : see declaration of 'geos::geom::IntersectionMatrix'
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(930) : while compiling class template member function 'std::auto_ptr<_Ty>::~auto_ptr(void)'
1>          with
1>          [
1>              _Ty=geos::geom::IntersectionMatrix
1>          ]
1>          G:\dev\geos\_svn\trunk\include\geos/operation/relate/RelateComputer.h(91) : see reference to class template instantiation 'std::auto_ptr<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=geos::geom::IntersectionMatrix
1>          ]

Change History (3)

comment:1 by strk, 13 years ago

Milestone: GEOS Future

comment:2 by robe, 6 years ago

Milestone: GEOS FutureGEOS Fund Me

Milestone renamed

comment:3 by dbaston, 5 years ago

Resolution: worksforme
Status: newclosed

Not seeing this in master with AppVeyor or AZP testing, please reopen if there is still an issue that I'm missing.

Note: See TracTickets for help on using tickets.