DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Memory Lead : IND_Surface #110

Closed AlainBridel closed 11 years ago

AlainBridel commented 11 years ago

The _surface->_vertexArray and _surface->_texturesArray created in OpenGLTextureBuilder are not free

DarthMike commented 11 years ago

@AlainBridel The memory was being released, but not in correct place. Mem. management was poor and misleading from code point of view. Please review changes.

AlainBridel commented 11 years ago

Seems ok with SURFACE destructor.