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

@@ -148,12 +148,13 @@ bool RenderableModel::deinitialize() {
if (_geometry) {
_geometry->deinitialize();
delete _geometry;
_geometry = nullptr;
}
if (_texture)
delete _texture;
delete _texture;
_texture = nullptr;
_geometry = nullptr;
_texture = nullptr;
delete _programObject;
_programObject = nullptr;
return true;
}