fix crashes from dangling pointer
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -326,6 +326,8 @@
FluxboxWindow::~FluxboxWindow() { if (WindowCmd<void>::window() == this) WindowCmd<void>::setWindow(0); + if (FbMenu::window() == this) + FbMenu::setWindow(0); if ( Fluxbox::instance()->keys() != 0 ) { Fluxbox::instance()->keys()-> unregisterWindow(frame().window().window());