It technically is a memory leak since you lost all references to it. It doesn't matter if there are still references to it somewhere else, it becomes a memory leak as soon as you lose the last reference to it. Obviously you can have indirect references to an object (ie store it in an array and throw the pointer away but keep a reference to the array), but the engine doesn't count as indirect reference but as blackbox that you don't have a control over.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com