clearing caches on memoryWarning.

This commit is contained in:
rachytski 2011-03-15 01:45:53 +02:00 committed by Alex Zolotarev
parent b8f6f73964
commit 57230bc42e
3 changed files with 7 additions and 0 deletions

View file

@ -53,6 +53,11 @@ void FeaturesFetcher::Clean()
m_multiIndex.Clean();
}
void FeaturesFetcher::ClearCaches()
{
m_multiIndex.ClearCaches();
}
m2::RectD FeaturesFetcher::GetWorldRect() const
{
if (m_rect == m2::RectD())

View file

@ -41,6 +41,7 @@ namespace model
void AddMap(string const & fName);
void RemoveMap(string const & fName);
void Clean();
void ClearCaches();
// process features by param type indices
template <class ToDo>

View file

@ -454,6 +454,7 @@ public:
void MemoryWarning()
{
m_model.ClearCaches();
m_informationDisplay.memoryWarning();
m_renderQueue.memoryWarning();