Merge pull request from rokuz/fixed-mem-leak-in-ios-textures

Fixed memory leak on iOS hardware textures destruction
This commit is contained in:
ygorshenin 2016-04-21 14:49:08 +03:00
commit 2b3e7eb1cb

View file

@ -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);