mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
delete tree on server shutdown
This commit is contained in:
parent
75f079e2b3
commit
7a8a8e2fac
1 changed files with 6 additions and 0 deletions
|
@ -298,6 +298,12 @@ OctreeServer::~OctreeServer() {
|
|||
delete _jurisdiction;
|
||||
_jurisdiction = NULL;
|
||||
|
||||
// cleanup our tree here...
|
||||
qDebug() << qPrintable(_safeServerName) << "server cleaning up octree... [" << this << "]";
|
||||
delete _tree;
|
||||
_tree = NULL;
|
||||
qDebug() << qPrintable(_safeServerName) << "server DONE cleaning up octree... [" << this << "]";
|
||||
|
||||
if (_instance == this) {
|
||||
_instance = NULL; // we are gone
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue