Fixing more memory leaks

This commit is contained in:
Alexander Bock
2015-05-26 21:44:49 +02:00
parent 3a8a178c6a
commit 4dddafcec9
4 changed files with 14 additions and 62 deletions
+4 -1
View File
@@ -37,6 +37,7 @@ class SceneGraphNode;
class SceneGraph {
public:
SceneGraph();
~SceneGraph();
void clear();
bool loadFromFile(const std::string& sceneDescription);
@@ -52,7 +53,9 @@ public:
private:
struct SceneGraphNodeInternal {
SceneGraphNode* node;
~SceneGraphNodeInternal();
SceneGraphNode* node = nullptr;
// From nodes that are dependent on this one
std::vector<SceneGraphNodeInternal*> incomingEdges;
// To nodes that this node depends on