Probably. I assume this is C++ (looks like Java psuedo code :P) in which case you need to explicitly delete the object so memory is not being sucked up by the loop. Reall I think it depends how many times the loop runs. You could easily define another class that does the job of cleaning up the dead objects from the loop.


Reply With Quote
Bookmarks