fix segfault on exit/restart after having opened a custommenu
This commit is contained in:
parent
ca8c53eab8
commit
35605d9c77
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue