Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-12-25 13:45:09 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-12-25 13:45:09 +0300
commitf4ad01fb5d0e7f64d5d0ab4fbb22c62ef766ff78 (patch)
treeffaffcbaef2d81aa592a23cfb5dd02fd397a1aa9 /drape_frontend/base_renderer.cpp
parent158267a8b8dec048e2a80bdedadb8df379d30e2e (diff)
Fixed crash on destroy drape engine
Diffstat (limited to 'drape_frontend/base_renderer.cpp')
-rw-r--r--drape_frontend/base_renderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drape_frontend/base_renderer.cpp b/drape_frontend/base_renderer.cpp
index 90c8e9c7ed..9292eabe14 100644
--- a/drape_frontend/base_renderer.cpp
+++ b/drape_frontend/base_renderer.cpp
@@ -137,7 +137,8 @@ void BaseRenderer::ProcessStopRenderingMessage()
bool BaseRenderer::CanReceiveMessages()
{
- return !m_selfThread.GetRoutine()->IsCancelled();
+ threads::IRoutine * routine = m_selfThread.GetRoutine();
+ return routine != nullptr && !routine->IsCancelled();
}
} // namespace df