This is a follow-up to this thread: http://www.actiprosoftware.com/community/thread/23221/mvvm-closing-doesnt-remove-from-documentite#111265
I'm now using vNext, and the DocumentItems list does stay "in sync" with the document tabs when they're closed. However, I've observed that the actual ViewModel objects don't seem to be getting cleaned up / garbage collected; if I open a doc, close its tab, open a doc, close its tab, etc - the DocumentItems collection does cycle between 0 & 1 as expected/desired, but in the Windows task manager, I observe the application's memory usage growing without bound. Is there somewhere that I need to explicitly remove/free/destroy/cleanup/etc the ViewModel, to prevent such a leak?
Thanks again