Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/engine/core/pathfinder/routepather/routepathersearch.cpp Fri Jun 26 18:04:57 2009 +0000 +++ b/engine/core/pathfinder/routepather/routepathersearch.cpp Tue Jun 30 20:03:02 2009 +0000 @@ -55,6 +55,11 @@ // m_searchspace = searchSpace; } + RoutePatherSearch::~RoutePatherSearch(){ + delete m_searchspace; + delete m_heuristic; + } + void RoutePatherSearch::updateSearch() { if(m_sortedfrontier.empty()) { setSearchStatus(search_status_failed);