Fix memory leaks and proper deinitialization

This commit is contained in:
jonasstrandstedt
2014-12-11 10:13:10 +01:00
parent 01361307f6
commit 7b2b81ed54
11 changed files with 38 additions and 12 deletions

View File

@@ -87,7 +87,7 @@ public:
//Vertex* _varray;
std::vector<float> _varray;
int* _iarray;
std::vector<int> _iarray;
//bool _once = false;
double lightTime;

View File

@@ -35,8 +35,9 @@
namespace openspace {
class RenderableStars : public Renderable {
public:
public:
RenderableStars(const ghoul::Dictionary& dictionary);
~RenderableStars();
bool initialize() override;
bool deinitialize() override;

View File

@@ -50,8 +50,9 @@ public:
bool operator<(const LuaLibrary& rhs) const;
};
ScriptEngine();
~ScriptEngine();
bool initialize();
void deinitialize();