fix segfault on exit/restart after having opened a custommenu

This commit is contained in:
markt 2007-04-24 16:06:22 +00:00
parent ca8c53eab8
commit 35605d9c77

View file

@ -459,6 +459,10 @@ Fluxbox::~Fluxbox() {
} }
m_atomhandler.clear(); m_atomhandler.clear();
// this needs to be destroyed before screens; otherwise, menus stored in
// key commands cause a segfault when the XLayerItem is destroyed
m_key.reset(0);
// destroy screens (after others, as they may do screen things) // destroy screens (after others, as they may do screen things)
while (!m_screen_list.empty()) { while (!m_screen_list.empty()) {
delete m_screen_list.back(); delete m_screen_list.back();