From 35605d9c778b4b8aa8aaa39c059ea958dc0f196b Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 24 Apr 2007 16:06:22 +0000 Subject: fix segfault on exit/restart after having opened a custommenu --- src/fluxbox.cc | 4 ++++ 1 file changed, 4 insertions(+) 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() { } 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) while (!m_screen_list.empty()) { delete m_screen_list.back(); -- cgit v0.11.2