comparison engine/core/pathfinder/routepather/routepathersearch.cpp @ 293:66df2422a8b0

Added destructor to the routepathersearch class. Attempt to fix the memory leak reported by Unknown-Horizons.
author wenlin_fife@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 30 Jun 2009 20:03:02 +0000
parents 6362c6812580
children 7416088ab191
comparison
equal deleted inserted replaced
292:6362c6812580 293:66df2422a8b0
52 // m_to = to; 52 // m_to = to;
53 // m_from = from; 53 // m_from = from;
54 // m_sessionId = session_id; 54 // m_sessionId = session_id;
55 // m_searchspace = searchSpace; 55 // m_searchspace = searchSpace;
56 } 56 }
57
58 RoutePatherSearch::~RoutePatherSearch(){
59 delete m_searchspace;
60 delete m_heuristic;
61 }
57 62
58 void RoutePatherSearch::updateSearch() { 63 void RoutePatherSearch::updateSearch() {
59 if(m_sortedfrontier.empty()) { 64 if(m_sortedfrontier.empty()) {
60 setSearchStatus(search_status_failed); 65 setSearchStatus(search_status_failed);
61 return; 66 return;