jaredpar/VsVim — pull request #700 by jasonmalinowski (2011-12-05 08:25:02+00:00)
Title: Fix memory leak in the CommandMargin

The command margin, when it is created, attaches itself to several events
on the singleton MacroRecorder. It never detached these, so it'd leak all
ITextViews that it was loaded for. There was only a test that checked for
leaks when creating an ITextView, not an ITextViewHost, so this one slipped
through the cracks. I've added the test to guard against future leaks like
this.