diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-12-25 13:45:09 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-12-25 13:45:09 +0300 |
commit | f4ad01fb5d0e7f64d5d0ab4fbb22c62ef766ff78 (patch) | |
tree | ffaffcbaef2d81aa592a23cfb5dd02fd397a1aa9 /drape_frontend/base_renderer.cpp | |
parent | 158267a8b8dec048e2a80bdedadb8df379d30e2e (diff) |
Fixed crash on destroy drape engine
Diffstat (limited to 'drape_frontend/base_renderer.cpp')
-rw-r--r-- | drape_frontend/base_renderer.cpp | 3 |
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 |