I think the crash that I was experiencing was caused by the fact that only one of the duplicate pointers was removed by DocumentSwitcherPlugin::removeView(). After this, the View would probably be destroyed, causing the other pointer which remained in the list to become invalid.
I think the crash that I was experiencing was caused by the fact that only one of the duplicate pointers was removed by DocumentSwitche rPlugin: :removeView( ). After this, the View would probably be destroyed, causing the other pointer which remained in the list to become invalid.