Commit ad951889 authored by bitplane's avatar bitplane

Fixed memory leak in cube node

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1341 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f51d8bf3
......@@ -45,6 +45,7 @@ CCubeSceneNode::CCubeSceneNode(f32 size, ISceneNode* parent, ISceneManager* mgr,
buf->Indices.set_used(36);
for (u32 i=0; i<36; ++i)
buf->Indices[i] = u[i];
buf->drop();
setSize();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment