From 3d06a9d4cb5a322121f4a1e6410c0808dda4fe80 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Thu, 21 Apr 2016 14:35:42 +0300 Subject: [PATCH] Fixed memory leak on iOS hardware textures destruction --- drape/hw_texture_ios.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape/hw_texture_ios.mm b/drape/hw_texture_ios.mm index 98a9097f7c..538d24af05 100644 --- a/drape/hw_texture_ios.mm +++ b/drape/hw_texture_ios.mm @@ -125,7 +125,7 @@ HWTextureApple::HWTextureApple(ref_ptr allocator) HWTextureApple::~HWTextureApple() { - if (m_allocator == nullptr) + if (m_allocator != nullptr) { m_allocator->CVDestroyTexture(m_texture); m_allocator->CVDestroyPixelBuffer(m_directBuffer);