Line 199 ff:
Code: Select all
// Because the new node will create itself with a reference count of 1, and
// then will have another reference added by its parent scene node when it is
// added to the scene, I need to drop my reference to it. Best practice is
// to drop it only *after* I have finished using it, regardless of what the
// reference count of the object is after creation.
line 219
Code: Select all
// I'm done referring to anim, so must drop this reference now because it
// was produced by a createFoo() function.
anim->drop();
anim = 0; // As I shouldn't refer to it again, ensure that I can't
Probably this is more coding related than Irrlicht specific, but I don't know.