View Linker: Remove child array entry after deletion to have a valid datastructure through destruction.

This commit is contained in:
Jacob Støren
2015-09-25 14:46:45 +02:00
parent c065d625e2
commit c370c7cb02
2 changed files with 3 additions and 3 deletions

View File

@@ -285,8 +285,8 @@ void RimViewLinker::setMasterView(RimView* view)
// Remove the view as dependent view
if (previousViewController)
{
this->viewLinks.removeChildObject(previousViewController);
delete previousViewController;
this->viewLinks.removeChildObject(NULL);
}
this->removeOverrides();