In Viewport::AddViewedCOmponent(), viewport is added as a component listener to the passed component. But it is not removed as a component listener when we set a new component or deleting viewport. Because of that while deleting the component(viewed component of viewport ) , it is trying to notify all its component listeners for beingdeleted(), which is causing a crash.
So i think in deleteComp() method in viewport we have to add removeComponentListener().
Good point, thanks very much - I’ll have a look at that!