[mapguide][MG455][Modified] DWFRenderer leaks memory after encountering stylization exce...

Walt Welton-Lair walt.welton-lair at autodesk.com
Thu Nov 23 12:27:39 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG455

Type:
Defect

Artifact ID:
MG455 (DWFRenderer leaks memory after encountering stylization exception)

Modified by:
Walt Welton-Lair
waltweltonlair (walt.welton-lair at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

-- Artifact Status changed:
Old value:
New
New value:
Assigned
-- Developer Notes set to new value:
In StartLayer we allocate m_attributes, and in EndLayer we add it to the attribute resources collection (and reset the pointer back to NULL).  The collection is freed when the renderer is destroyed.

If an exception occurs after the call to StartLayer such that EndLayer is not called, then m_attributes does not get added to the resources collection, and must be manually freed.

We now check if it's non-NULL in StartLayer and delete it if necessary - that takes care of the case when an exception occurs processing layer N, and we've started processing layer N+1.  Also added the check in the destructor.  That handles the case if an exception occurs while processing the last layer of the map.




---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list