diff --git a/search/house_detector.cpp b/search/house_detector.cpp index 457a7dc4f8..2da5c91d76 100644 --- a/search/house_detector.cpp +++ b/search/house_detector.cpp @@ -302,6 +302,8 @@ HouseDetector::HouseDetector(Index const * pIndex) SetMetres2Mercator(360.0 / 40.0E06); } +HouseDetector::~HouseDetector() { ClearCaches(); } + void HouseDetector::SetMetres2Mercator(double factor) { m_metres2Mercator = factor; diff --git a/search/house_detector.hpp b/search/house_detector.hpp index 16f0e84c4c..6a0cd4388e 100644 --- a/search/house_detector.hpp +++ b/search/house_detector.hpp @@ -254,6 +254,7 @@ class HouseDetector public: HouseDetector(Index const * pIndex); + ~HouseDetector(); uint32_t GetBuildingType() const;