From: Dana Jansens Date: Tue, 23 Jul 2002 04:01:39 +0000 (+0000) Subject: fix a crash. when the window loses focus during its death, it uses the timer object... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a41a0c1ac8742f1c5b78090f4fcda26c79520678;p=chaz%2Fopenbox fix a crash. when the window loses focus during its death, it uses the timer object, which was being deleted. --- 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();