fix a crash. when the window loses focus during its death, it uses the timer object, which was being deleted.
This commit is contained in:
parent
ba9c665a87
commit
a41a0c1ac8
1 changed files with 4 additions and 4 deletions
|
@ -347,10 +347,6 @@ BlackboxWindow::~BlackboxWindow(void) {
|
||||||
if (flags.moving)
|
if (flags.moving)
|
||||||
endMove();
|
endMove();
|
||||||
|
|
||||||
delete timer;
|
|
||||||
|
|
||||||
delete windowmenu;
|
|
||||||
|
|
||||||
if (client.window_group) {
|
if (client.window_group) {
|
||||||
BWindowGroup *group = blackbox->searchGroup(client.window_group);
|
BWindowGroup *group = blackbox->searchGroup(client.window_group);
|
||||||
if (group) group->removeWindow(this);
|
if (group) group->removeWindow(this);
|
||||||
|
@ -381,6 +377,10 @@ BlackboxWindow::~BlackboxWindow(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete timer;
|
||||||
|
|
||||||
|
delete windowmenu;
|
||||||
|
|
||||||
if (frame.title)
|
if (frame.title)
|
||||||
destroyTitlebar();
|
destroyTitlebar();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue