From: Dana Jansens Date: Thu, 11 Jul 2002 00:41:56 +0000 (+0000) Subject: clean up the systray and desktop lists X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f320a023977e430785454e70c8c861b7c95f9a8f;p=chaz%2Fopenbox clean up the systray and desktop lists --- diff --git a/src/Screen.cc b/src/Screen.cc index cebd21c0..99224350 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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;