Fixes a memory leak when destroying an SC.ContainerView