delete tree on server shutdown

This commit is contained in:
ZappoMan 2014-04-21 15:14:06 -07:00
parent 75f079e2b3
commit 7a8a8e2fac

View file

@ -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
}