Remove 1500+ memory leaks in OpenSpace and Ghoul

This commit is contained in:
Alexander Bock
2015-05-25 19:37:56 +02:00
parent b840631813
commit 659326b9a9
17 changed files with 136 additions and 96 deletions

View File

@@ -119,7 +119,14 @@ bool RenderablePath::initialize() {
bool RenderablePath::deinitialize() {
glDeleteVertexArrays(1, &_vaoID);
_vaoID = 0;
glDeleteBuffers(1, &_vBufferID);
_vBufferID = 0;
delete _programObject;
_programObject = nullptr;
return true;
}