From 68d8aa60b6859cd778a7ec5172b1dce7746fdf05 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Tue, 17 Jun 2008 09:21:41 -0700 Subject: fix crashes from dangling pointer --- src/Window.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Window.cc b/src/Window.cc index e56f735..56c6f95 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -326,6 +326,8 @@ FluxboxWindow::FluxboxWindow(WinClient &client, FbTk::XLayer &layer): FluxboxWindow::~FluxboxWindow() { if (WindowCmd::window() == this) WindowCmd::setWindow(0); + if (FbMenu::window() == this) + FbMenu::setWindow(0); if ( Fluxbox::instance()->keys() != 0 ) { Fluxbox::instance()->keys()-> unregisterWindow(frame().window().window()); -- cgit v0.11.2