From a41a0c1ac8742f1c5b78090f4fcda26c79520678 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 23 Jul 2002 04:01:39 +0000 Subject: [PATCH] fix a crash. when the window loses focus during its death, it uses the timer object, which was being deleted. --- src/Window.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 4b730d34..8119a54c 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -347,10 +347,6 @@ BlackboxWindow::~BlackboxWindow(void) { if (flags.moving) endMove(); - delete timer; - - delete windowmenu; - if (client.window_group) { BWindowGroup *group = blackbox->searchGroup(client.window_group); if (group) group->removeWindow(this); @@ -381,6 +377,10 @@ BlackboxWindow::~BlackboxWindow(void) { } } + delete timer; + + delete windowmenu; + if (frame.title) destroyTitlebar(); -- 2.45.2