History

Merge pull request #15060 from AndrewMeadows/avoid-mem-leaked-entities

Case 21494: Avoid mem leaked entities

Shannon Romano committed 7 years ago

Commit d68f82e2 parents 00ca3bc 8a7853a3 files · +33 −15Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+4−1
@@ -3773,9 +3773,12 @@ std::map<QString, QString> Application::prepareServerlessDomainContents(QUrl dom · 3772 unmodified lines
3773 tmpTree->reaverageOctreeElements();3773 tmpTree->reaverageOctreeElements();
3774 tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), 0, 0, 0);3774 tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), 0, 0, 0);
3775 }3775 }
3776 std::map<QString, QString> namedPaths = tmpTree->getNamedPaths();
3776 3777
3777 return tmpTree->getNamedPaths();3778 // we must manually eraseAllOctreeElements(false) else the tmpTree will mem-leak
3779 tmpTree->eraseAllOctreeElements(false);
3778 3780
3781 return namedPaths;
3779}3782}
3780 3783
3781void Application::loadServerlessDomain(QUrl domainURL) {3784void Application::loadServerlessDomain(QUrl domainURL) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t