forked from quickshell/quickshell
core/reloader: null generation ref in reloadables on destruction
On the post-reload reloadable initialzation path, a timer is used to delay reload(). This change fixes a UAF when switching generations while that timer is running.
This commit is contained in:
parent
3edb3f4efa
commit
13b6eeaa22
2 changed files with 11 additions and 0 deletions
|
@ -71,6 +71,7 @@ public:
|
|||
|
||||
private slots:
|
||||
void onReloadFinished();
|
||||
void onGenerationDestroyed();
|
||||
|
||||
protected:
|
||||
// Called unconditionally in the reload phase, with nullptr if no source could be determined.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue