mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
use correct cleanup calls in OctreeServer destructor
This commit is contained in:
parent
aac01ee70d
commit
5b6c2531a4
1 changed files with 7 additions and 7 deletions
|
@ -81,18 +81,18 @@ OctreeServer::~OctreeServer() {
|
|||
delete _jurisdictionSender;
|
||||
}
|
||||
|
||||
if (_voxelServerPacketProcessor) {
|
||||
_voxelServerPacketProcessor->terminate();
|
||||
delete _voxelServerPacketProcessor;
|
||||
if (_octreeInboundPacketProcessor) {
|
||||
_octreeInboundPacketProcessor->terminate();
|
||||
delete _octreeInboundPacketProcessor;
|
||||
}
|
||||
|
||||
if (_voxelPersistThread) {
|
||||
_voxelPersistThread->terminate();
|
||||
delete _voxelPersistThread;
|
||||
if (_persistThread) {
|
||||
_persistThread->terminate();
|
||||
delete _persistThread;
|
||||
}
|
||||
|
||||
// tell our NodeList we're done with notifications
|
||||
NodeList::getInstance()->removeHook(&_nodeWatcher);
|
||||
nodeList->removeHook(this);
|
||||
|
||||
delete _jurisdiction;
|
||||
_jurisdiction = NULL;
|
||||
|
|
Loading…
Reference in a new issue