Opened 5 years ago
Closed 5 years ago
#944 closed defect (fixed)
Multiple memory leaks in SIRtreePointInRing
Reported by: | dbaston | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Default | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
In SIRtreePointInRing::isInside(const Coordinate& pt)
A vector is never freed:
vector<void*> *segs=sirTree->query(pt.y);
In SIRtreePointInRing::buildIndex()
LineSegments are added to a tree, but are never cleaned up:
for(std::size_t i=1; i<npts; ++i) { if(pts->getAt(i-1)==pts->getAt(i)) continue; // Optimization suggested by MD. [Jon Aquino] LineSegment *seg=new LineSegment(pts->getAt(i-1), pts->getAt(i)); sirTree->insert(seg->p0.y, seg->p1.y, seg); }
Note:
See TracTickets
for help on using tickets.
In 24652fb/git: