vtkContextView causes crash when reassigning interactors
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
There is an access of deleted class that has been present in vtkContextInteractorStyle since 2011 (introduced in 62ee96a8).
When a vtkContextView is created, assigned an interactor from elsewhere, and the previous steps repeated, a vtkContextInteractorStyle is destroyed while there is a one-shot timer event pending for the class. This results in attempting to access the deleted vtkContextInteractorStyle and usually a SEGV. This happens because nothing is done to cancel the pending event when the vtkContextInteractorStyle is destroyed.
Simple test case attached.