package_daemon: Do not delete roots on destruction.
Instead just release our reference to them and clear the list. Should fix #17580.
This commit is contained in:
parent
9e25244c5e
commit
fcd448f86b
@ -38,6 +38,9 @@ PackageDaemon::PackageDaemon(status_t* _error)
|
||||
|
||||
PackageDaemon::~PackageDaemon()
|
||||
{
|
||||
for (int32 i = 0; Root* root = fRoots.ItemAt(i); i++)
|
||||
root->ReleaseReference();
|
||||
fRoots.MakeEmpty(false);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user