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 management for string in StructBoundingCollision is wrong #105

Closed DarthMike closed 11 years ago

DarthMike commented 11 years ago

there is a char* contained in struct, which is not owned by struct itself.

This should be refactor to build the struct with a constructor taking a const char*, thus allocating with operator new the string buffer, and deallocating it in destructor.

DarthMike commented 11 years ago

Relates to #104