Skip to content

Commit

Permalink
GRAPHICS: Delete mesh data in ModelNode destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
farmboy0 committed Aug 16, 2016
1 parent c482a8a commit 25c020d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/graphics/aurora/modelnode.cpp
Expand Up @@ -77,6 +77,16 @@ ModelNode::ModelNode(Model &model) :
}

ModelNode::~ModelNode() {
if (_mesh) {
if (_mesh->dangly) {
delete _mesh->dangly->data;
delete _mesh->dangly;
}
delete _mesh->data;
}
delete _mesh;
_mesh = 0;

delete _attachedModel;
_attachedModel = 0;
}
Expand Down

0 comments on commit 25c020d

Please sign in to comment.