clean up the systray and desktop lists
authorDana Jansens <danakj@orodu.net>
Thu, 11 Jul 2002 00:41:56 +0000 (00:41 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 11 Jul 2002 00:41:56 +0000 (00:41 +0000)
src/Screen.cc

index cebd21c..9922435 100644 (file)
@@ -310,6 +310,12 @@ BScreen::~BScreen(void) {
 
   std::for_each(netizenList.begin(), netizenList.end(), PointerAssassin());
 
+  while (! desktopWindowList.empty())
+    removeDesktopWindow(desktopWindowList[0]);
+
+  while (! systrayWindowList.empty())
+    removeSystrayWindow(systrayWindowList[0]);
+
   delete rootmenu;
   delete workspacemenu;
   delete iconmenu;