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 | 258 | VoxelSystem::~VoxelSystem() { |
| 259 | + VoxelTreeElement::removeDeleteHook(this); | |
| 260 | + VoxelTreeElement::removeUpdateHook(this); | |
| 261 | + | |
| 259 | 262 | cleanupVoxelMemory(); |
| 260 | 263 | delete _tree; |
| 261 | 264 | pthread_mutex_destroy(&_bufferWriteLock); |
| 262 | 265 | pthread_mutex_destroy(&_treeLock); |
| 263 | 266 | pthread_mutex_destroy(&_freeIndexLock); |
| 264 | − | |
| 265 | − VoxelTreeElement::removeDeleteHook(this); | |
| 266 | − VoxelTreeElement::removeUpdateHook(this); | |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | void VoxelSystem::setMaxVoxels(int maxVoxels) { |