forked from organicmaps/organicmaps
Merge pull request #2945 from rokuz/fixed-mem-leak-in-ios-textures
Fixed memory leak on iOS hardware textures destruction
This commit is contained in:
commit
2b3e7eb1cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue