diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-04-21 14:35:42 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-04-21 14:35:42 +0300 |
commit | 3d06a9d4cb5a322121f4a1e6410c0808dda4fe80 (patch) | |
tree | 2c5e5054474aaf5544b2f8af4f980ba5a2c96f38 /drape | |
parent | 3362c2ff0a6492b0464d85a006c1605a81e6ae0b (diff) |
Fixed memory leak on iOS hardware textures destruction
Diffstat (limited to 'drape')
-rw-r--r-- | drape/hw_texture_ios.mm | 2 |
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); |