mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 10:28:57 +02:00
avoid mem-leak for serverless domains
This commit is contained in:
parent
2449693d8b
commit
7d9efe4c09
1 changed files with 4 additions and 1 deletions
|
@ -3773,9 +3773,12 @@ std::map<QString, QString> Application::prepareServerlessDomainContents(QUrl dom
|
|||
tmpTree->reaverageOctreeElements();
|
||||
tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), 0, 0, 0);
|
||||
}
|
||||
std::map<QString, QString> namedPaths = tmpTree->getNamedPaths();
|
||||
|
||||
return tmpTree->getNamedPaths();
|
||||
// we must manually eraseAllOctreeElements(false) else the tmpTree will mem-leak
|
||||
tmpTree->eraseAllOctreeElements(false);
|
||||
|
||||
return namedPaths;
|
||||
}
|
||||
|
||||
void Application::loadServerlessDomain(QUrl domainURL) {
|
||||
|
|
Loading…
Reference in a new issue