Deleting viewport before deleting its viewed Component


#1

Hi Jules,
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().


#2

Good point, thanks very much - I’ll have a look at that!