forked from quickshell/quickshell
core: fix shutdown sequence crashing
This commit is contained in:
parent
3991726b9b
commit
9e58077c61
3 changed files with 10 additions and 4 deletions
|
@ -84,6 +84,14 @@ void EngineGeneration::destroy() {
|
|||
}
|
||||
}
|
||||
|
||||
void EngineGeneration::shutdown() {
|
||||
delete this->root;
|
||||
this->root = nullptr;
|
||||
delete this->engine;
|
||||
this->engine = nullptr;
|
||||
delete this;
|
||||
}
|
||||
|
||||
void EngineGeneration::onReload(EngineGeneration* old) {
|
||||
if (old != nullptr) {
|
||||
// if the old generation holds the window incubation controller as the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue