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
|
@ -35,11 +35,8 @@ RootWrapper::RootWrapper(QString rootPath)
|
|||
RootWrapper::~RootWrapper() {
|
||||
// event loop may no longer be running so deleteLater is not an option
|
||||
if (this->generation != nullptr) {
|
||||
delete this->generation->root;
|
||||
this->generation->root = nullptr;
|
||||
this->generation->shutdown();
|
||||
}
|
||||
|
||||
delete this->generation;
|
||||
}
|
||||
|
||||
void RootWrapper::reloadGraph(bool hard) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue