diff options
-rw-r--r-- | src/fluxbox.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index e0bb345..ef747e6 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -459,6 +459,10 @@ Fluxbox::~Fluxbox() { | |||
459 | } | 459 | } |
460 | m_atomhandler.clear(); | 460 | m_atomhandler.clear(); |
461 | 461 | ||
462 | // this needs to be destroyed before screens; otherwise, menus stored in | ||
463 | // key commands cause a segfault when the XLayerItem is destroyed | ||
464 | m_key.reset(0); | ||
465 | |||
462 | // destroy screens (after others, as they may do screen things) | 466 | // destroy screens (after others, as they may do screen things) |
463 | while (!m_screen_list.empty()) { | 467 | while (!m_screen_list.empty()) { |
464 | delete m_screen_list.back(); | 468 | delete m_screen_list.back(); |