diff --git a/src/PrsMgr/PrsMgr_Presentation.cxx b/src/PrsMgr/PrsMgr_Presentation.cxx index 6343c1a151..facc71efbb 100644 --- a/src/PrsMgr/PrsMgr_Presentation.cxx +++ b/src/PrsMgr/PrsMgr_Presentation.cxx @@ -407,13 +407,7 @@ Handle(Prs3d_Projector) PrsMgr_Presentation::Projector (const Handle(Graphic3d_D //======================================================================= void PrsMgr_Presentation::Destroy() { - if (!myStructure.IsNull()) - { - // Remove structure from the list of displayed structures. - myStructure->Erase(); - myStructure->Clear(); - myStructure.Nullify(); - } + Erase(); } //=======================================================================