At the moment it isn't obvious how to make view models dispose of their resources. In PR #1359 I've used a workaround that assumes that only one instance of `PullRequestDetailViewModel` will exist at a time: https://github.com/github/VisualStudio/pull/1359/commits/6c4ff1b7eb97a84d927594ccd666c291f1f13450#diff-347b0f42676901bf61fcbabb3c74ec3eR88 If the the GitHub pane starts disposing of its view models, this can be removed.
At the moment it isn't obvious how to make view models dispose of their resources.
In PR #1359 I've used a workaround that assumes that only one instance of
PullRequestDetailViewModelwill exist at a time:6c4ff1b#diff-347b0f42676901bf61fcbabb3c74ec3eR88
If the the GitHub pane starts disposing of its view models, this can be removed.