Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -256,14 +256,14 @@ void VoxelSystem::clearFreeBufferIndexes() { · 255 unmodified lines | |||
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | VoxelSystem::~VoxelSystem() { | 258 | VoxelSystem::~VoxelSystem() { |
| 259 | VoxelTreeElement::removeDeleteHook(this); | ||
| 260 | VoxelTreeElement::removeUpdateHook(this); | ||
| 261 | |||
| 259 | cleanupVoxelMemory(); | 262 | cleanupVoxelMemory(); |
| 260 | delete _tree; | 263 | delete _tree; |
| 261 | pthread_mutex_destroy(&_bufferWriteLock); | 264 | pthread_mutex_destroy(&_bufferWriteLock); |
| 262 | pthread_mutex_destroy(&_treeLock); | 265 | pthread_mutex_destroy(&_treeLock); |
| 263 | pthread_mutex_destroy(&_freeIndexLock); | 266 | pthread_mutex_destroy(&_freeIndexLock); |
| 264 | |||
| 265 | VoxelTreeElement::removeDeleteHook(this); | ||
| 266 | VoxelTreeElement::removeUpdateHook(this); | ||
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void VoxelSystem::setMaxVoxels(int maxVoxels) { | 269 | void VoxelSystem::setMaxVoxels(int maxVoxels) { |