History

Let's actually close our sessios on exit.

Andrzej Kapolka committed 12 years ago

Commit 9a892ea1 parent 1e4bfff3 files · +8 −1Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 3 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+6−0
@@ -24,6 +24,12 @@ MetavoxelSystem::MetavoxelSystem() : · 23 unmodified lines
2424 _buffer(QOpenGLBuffer::VertexBuffer) {
2525 }
2626
27+MetavoxelSystem::~MetavoxelSystem() {
28+ for (QHash<QUuid, MetavoxelClient*>::const_iterator it = _clients.begin(); it != _clients.end(); it++) {
29+ delete it.value();
30+ }
31+}
32+
2733 void MetavoxelSystem::init() {
2834 if (!_program.isLinked()) {
2935 switchToResourcesParentIfRequired();