mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 05:05:57 +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;
|
delete _jurisdiction;
|
||||||
_jurisdiction = NULL;
|
_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) {
|
if (_instance == this) {
|
||||||
_instance = NULL; // we are gone
|
_instance = NULL; // we are gone
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue