Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
When using Texture2DGL::getBytes() on flipped images, only memory for flipped image is being released and original image memory is not.
This pull fix this issue freeing original image in all cases.
When using Texture2DGL::getBytes() on flipped images, only memory for flipped image is being released and original image memory is not. This pull fix this issue freeing original image in all cases.