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:
Diffstat (limited to 'qt/draw_widget.cpp')
-rw-r--r--qt/draw_widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp
index ae41422000..a4ae87f996 100644
--- a/qt/draw_widget.cpp
+++ b/qt/draw_widget.cpp
@@ -201,14 +201,14 @@ namespace qt
if (!m_isInitialized)
{
- VideoTimer * videoTimer = CreateVideoTimer();
+ m_videoTimer.reset(CreateVideoTimer());
DrawerYG::Params params;
params.m_frameBuffer = make_shared_ptr(new yg::gl::FrameBuffer(true));
shared_ptr<qt::gl::RenderContext> primaryRC(new qt::gl::RenderContext(this));
- m_framework->SetRenderPolicy(CreateRenderPolicy(videoTimer, params, primaryRC));
+ m_framework->SetRenderPolicy(CreateRenderPolicy(m_videoTimer.get(), params, primaryRC));
m_isInitialized = true;
}