Opened 17 years ago
Last modified 14 years ago
#1540 closed defect
Minor memory leaks in gmlreader.cpp (fixed) — at Initial Version
Reported by: | rogerjames99 | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | OGR_SF | Version: | 1.4.0 |
Severity: | normal | Keywords: | ogr gml xerces |
Cc: | warmerdam, epifanio |
Description
I have fixed some minor memory leaks in gmlreader.cpp. The xerces runtime was not being cleaned up properly on exit so I have added a call to XMLPlatformUtils::Terminate(); in the GMLReader class destructor. Also some strings in GMLReader::SetupParser were not being freed, so I have enclosed them in std::auto_ptr(s). The relevant files modded against the 1.4.0 release are attached. These leaks are trivial but can bite someone making protracted use of the library without reloading.
Change History (2)
by , 17 years ago
Attachment: | gmlreader.cpp added |
---|
by , 17 years ago
Attachment: | gmlreaderp.h added |
---|
Note:
See TracTickets
for help on using tickets.