fix coverity issues

This commit is contained in:
wmayer
2016-10-08 17:43:30 +02:00
parent 6d3e2a396a
commit 68ea7fdac5
12 changed files with 54 additions and 48 deletions

View File

@@ -841,9 +841,10 @@ void View3DInventorViewer::setNavigationType(Base::Type t)
}
NavigationStyle* ns = static_cast<NavigationStyle*>(base);
ns->operator = (*this->navigation);
if (this->navigation)
if (this->navigation) {
ns->operator = (*this->navigation);
delete this->navigation;
}
this->navigation = ns;
this->navigation->setViewer(this);
}