1 | | {{{ |
2 | | OGR uses reference counting for some object to manage the life cycle of objects as well as to |
3 | | decrease OGR memory requirements. |
4 | | In particular SpatialReferenceSystems are reference counted. While reference counting is |
5 | | consistent in OGRProj4CT, namely |
6 | | OGRSpatialReference are deleted when counter falls below 1, in OGRGeometry eg. |
7 | | OGRGeometry::~OGRGeometry and |
8 | | OGRGeometry::assignSpatialReference a counter is released without checking if |
9 | | OGRSpatialReference should be deleted. This may |
| 1 | OGR uses reference counting for some object to manage the life cycle of objects as well as to decrease OGR memory requirements. |
| 2 | In particular SpatialReferenceSystems are reference counted. While reference counting is consistent in OGRProj4CT, namely |
| 3 | OGRSpatialReference are deleted when counter falls below 1, in OGRGeometry eg. OGRGeometry::~OGRGeometry and OGRGeometry::assignSpatialReference a counter is released without checking if OGRSpatialReference should be deleted. This may |