ChangeList growing without bound
|Reported by:||dirk||Owned by:||vossg|
Description (last modified by vossg)
I have been trying to track down some memory leaks in my application
today and I noticed that the _changedStore and _createdStore vectors in
OSG::ChangeList? seem to grow without bound in all the current sample
applications and tutorials. It looks like there is no where in the
system that ever calls clear (or commitChangesAndClear or ...) to
actually apply and clear the change lists.
I know I don't understand the change list code very well, but this seems
like a "bad thing".
Is this something that the user just needs to remember to do once per frame?
adding a Thread::getCurrentChangeList()->clear() in the glut display
callback should fix this but that's not very nice. Perhaps we should add
this to the SimpleSceneManager? redraw method?