On Wed, Mar 3, 2010 at 7:46 PM, Jos Timanta Tarigan <[email protected]> wrote:
> so my code is a little bit rough so after i create an object, i tend not to > destroy it. but then it happen in a method that being called a lot. > is C++ care enough to destroy the object after it finished call > the method? C++ doesn't have 'garbage collection' by default so you should be releasing objects created on the 'heap' (those created using new/clone etc.) Objects on the stack should be automatically released as soon as they go out of scope. -- PJH http://shabbleland.myminicity.com/env http://www.chavgangs.com/register.php?referer=9375
