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>2016-04-21 14:35:42 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-04-21 14:35:42 +0300
commit3d06a9d4cb5a322121f4a1e6410c0808dda4fe80 (patch)
tree2c5e5054474aaf5544b2f8af4f980ba5a2c96f38 /drape/hw_texture_ios.mm
parent3362c2ff0a6492b0464d85a006c1605a81e6ae0b (diff)
Fixed memory leak on iOS hardware textures destruction
Diffstat (limited to 'drape/hw_texture_ios.mm')
-rw-r--r--drape/hw_texture_ios.mm2
1 files changed, 1 insertions, 1 deletions
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<HWTextureAllocatorApple> allocator)
HWTextureApple::~HWTextureApple()
{
- if (m_allocator == nullptr)
+ if (m_allocator != nullptr)
{
m_allocator->CVDestroyTexture(m_texture);
m_allocator->CVDestroyPixelBuffer(m_directBuffer);