[mapguide-trac] #1862: CCoordinateSystemEnumInteger32 leaks
memory when being destructed
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Dec 5 01:37:24 EST 2011
#1862: CCoordinateSystemEnumInteger32 leaks memory when being destructed
------------------------------------------------------------------------------+
Reporter: baertelchen | Owner: baertelchen
Type: defect | Status: closed
Priority: low | Milestone:
Component: General | Version: 2.1.0
Severity: trivial | Resolution: fixed
Keywords: memory leak coordinate system API CCoordinateSystemEnumInteger32 | External_id:
------------------------------------------------------------------------------+
Changes (by baertelchen):
* status: new => closed
* resolution: => fixed
Comment:
Fixed in changeset 6283 (http://trac.osgeo.org/mapguide/changeset/6283).
The main problem is, that the CCoordinateSystemEnumInteger32 class did not
delete its [m_pnValues] array which holds all the Integer32 values upon
destruction.
Added the delete[] call to the destructor.
Also added a call to the [ClearFilter()] so that any such (auto-ptr'ed)
values are also released.
Changes reviewed by Walt.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1862#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list