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 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r--iphone/Maps/Classes/EAGLView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm
index 73ca18b726..6f62c7165b 100644
--- a/iphone/Maps/Classes/EAGLView.mm
+++ b/iphone/Maps/Classes/EAGLView.mm
@@ -17,6 +17,7 @@
@implementation EAGLView
@synthesize framework;
+@synthesize videoTimer;
@synthesize frameBuffer;
@synthesize renderContext;
@synthesize renderBuffer;
@@ -95,7 +96,7 @@
SEL drawFrameSel = @selector(drawFrame);
drawFrameFn drawFrameImpl = (drawFrameFn)[self methodForSelector:drawFrameSel];
- VideoTimer * videoTimer = CreateIOSVideoTimer(bind(drawFrameImpl, self, drawFrameSel));
+ videoTimer = CreateIOSVideoTimer(bind(drawFrameImpl, self, drawFrameSel));
renderPolicy = CreateRenderPolicy(videoTimer, p, renderContext);
@@ -151,6 +152,7 @@
- (void)dealloc
{
+ delete videoTimer;
// m_framework->SetRenderPolicy(0);
[EAGLContext setCurrentContext:nil];
[super dealloc];