Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -24,6 +24,12 @@ MetavoxelSystem::MetavoxelSystem() : · 23 unmodified lines | ||
| 24 | 24 | _buffer(QOpenGLBuffer::VertexBuffer) { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | +MetavoxelSystem::~MetavoxelSystem() { | |
| 28 | + for (QHash<QUuid, MetavoxelClient*>::const_iterator it = _clients.begin(); it != _clients.end(); it++) { | |
| 29 | + delete it.value(); | |
| 30 | + } | |
| 31 | +} | |
| 32 | + | |
| 27 | 33 | void MetavoxelSystem::init() { |
| 28 | 34 | if (!_program.isLinked()) { |
| 29 | 35 | switchToResourcesParentIfRequired(); |