Salome HOME
DCQ:prepare 2.0.0
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI.cxx
index 64aa853ac8d7ad0b5122ed3e127ad89362dfd82f..f622c04f0a455db9d257d8b2e6889237e06d3eec 100644 (file)
@@ -74,7 +74,11 @@ SUPERVGUI::~SUPERVGUI() {
         factory = 0;
        //if (!engine->_is_nil()) CORBA::release(engine);         
         //info->close();
-        if (browser) browser->close();
+        if (browser) {
+         if (browser->isVisible())
+           browser->close();
+         delete browser;
+       }
         MESSAGE("SUPERVGUI Info : factory destroy");
     } else {
         MESSAGE("SUPERVGUI Error : another call to factory destructor");