aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-06-17 16:21:41 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-06-17 16:21:41 (GMT)
commit68d8aa60b6859cd778a7ec5172b1dce7746fdf05 (patch)
tree0490d1963d4814ded032e64680ccdad8d7a3cd34 /src
parentbe3ac3723da5bc5203c68ea3bea597e8a6ba9c8d (diff)
downloadfluxbox-68d8aa60b6859cd778a7ec5172b1dce7746fdf05.zip
fluxbox-68d8aa60b6859cd778a7ec5172b1dce7746fdf05.tar.bz2
fix crashes from dangling pointer
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc2
1 files changed, 2 insertions, 0 deletions
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):
326FluxboxWindow::~FluxboxWindow() { 326FluxboxWindow::~FluxboxWindow() {
327 if (WindowCmd<void>::window() == this) 327 if (WindowCmd<void>::window() == this)
328 WindowCmd<void>::setWindow(0); 328 WindowCmd<void>::setWindow(0);
329 if (FbMenu::window() == this)
330 FbMenu::setWindow(0);
329 if ( Fluxbox::instance()->keys() != 0 ) { 331 if ( Fluxbox::instance()->keys() != 0 ) {
330 Fluxbox::instance()->keys()-> 332 Fluxbox::instance()->keys()->
331 unregisterWindow(frame().window().window()); 333 unregisterWindow(frame().window().window());