Quan-Zhi / k-shortest-paths

Automatically exported from code.google.com/p/k-shortest-paths
0 stars 0 forks source link

I Have removed all the memory leak #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
~YenTopKShortestPathsAlg(void)
    {
        for (multiset<BasePath*, WeightLess<BasePath>>::iterator it=m_quPathCandidates.begin();
            it!=m_quPathCandidates.end(); it++)
        {
            delete (*it);
        }
        for(vector<BasePath*>::iterator it= m_vResultList.begin();
            it!=m_vResultList.end();it++)
        {
            delete *it;
        }

        clear();
    }

and some other memory leak located in the DijkstraShortestPathAlg & Graph 
Function

see the attachment for detail

Original issue reported on code.google.com by whyjie...@gmail.com on 8 Nov 2012 at 6:49

Attachments: