Add protection needed when alieve is closed via the window-manager close button.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Dec 2009 21:24:42 +0000 (21:24 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Dec 2009 21:24:42 +0000 (21:24 +0000)
EVE/alieve_main/alieve_main.cxx

index 398f8b5..6b3f633 100644 (file)
@@ -84,7 +84,8 @@ int main(int argc, char **argv)
 
   app->Run(kTRUE);
 
-  gEve->GetBrowser()->UnmapWindow();
+  if (gEve && gEve->GetBrowser())
+    gEve->GetBrowser()->UnmapWindow();
   TEveManager::Terminate();
 
   app->Terminate(0);